add (very rough) gizmo, restructure Dart package into library, add EntityListWidget
This commit is contained in:
10
lib/filament/utils/using_pointer.dart
Normal file
10
lib/filament/utils/using_pointer.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'dart:ffi';
|
||||
|
||||
import 'package:ffi/ffi.dart';
|
||||
|
||||
final allocator = calloc;
|
||||
|
||||
void using(Pointer ptr, Future Function(Pointer ptr) function) async {
|
||||
await function.call(ptr);
|
||||
allocator.free(ptr);
|
||||
}
|
||||
Reference in New Issue
Block a user