commit | 28edba0afddfb4d315e100ab2f2e825b07f9cb43 | [log] [tgz] |
---|---|---|
author | Daco Harkes <dacoharkes@google.com> | Tue Feb 09 11:12:30 2021 +0100 |
committer | GitHub <noreply@github.com> | Tue Feb 09 11:12:30 2021 +0100 |
tree | fbead755d6e809be7ea0745a715dcdaf178a9664 | |
parent | b51a6397e8d4f6f9fc87be65cf869273f82d8c3f [diff] |
ignore: non_constant_type_argument_warning (#80)
diff --git a/lib/src/allocation.dart b/lib/src/allocation.dart index ca63921..fc02bfc 100644 --- a/lib/src/allocation.dart +++ b/lib/src/allocation.dart
@@ -52,6 +52,7 @@ /// Throws an ArgumentError on failure to allocate. @Deprecated('Use calloc() instead.') Pointer<T> allocate<T extends NativeType>({int count = 1}) { + // ignore: non_constant_type_argument_warning final int totalSize = count * sizeOf<T>(); return calloc.allocate(totalSize); }