mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[tools] Fix --template=plugin_ffi
formatting (#146269)
It looks like the formatter was updated. We have a test running on the FFIgen repo that checks that rerunning the generated bindings with FFIgen generates identical bindings. Closes: * https://github.com/dart-lang/native/issues/1072
This commit is contained in:
parent
508641ca7a
commit
ac5be2d821
@ -43,8 +43,7 @@ class {{pluginDartClass}}Bindings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
late final _sumPtr =
|
late final _sumPtr =
|
||||||
_lookup<ffi.NativeFunction<ffi.Int Function(ffi.Int, ffi.Int)>>(
|
_lookup<ffi.NativeFunction<ffi.Int Function(ffi.Int, ffi.Int)>>('sum');
|
||||||
'sum');
|
|
||||||
late final _sum = _sumPtr.asFunction<int Function(int, int)>();
|
late final _sum = _sumPtr.asFunction<int Function(int, int)>();
|
||||||
|
|
||||||
/// A longer lived native function, which occupies the thread calling it.
|
/// A longer lived native function, which occupies the thread calling it.
|
||||||
|
Loading…
Reference in New Issue
Block a user