add onDestroy hooks for FilamentApp

This commit is contained in:
Nick Fisher
2025-04-02 22:27:12 +08:00
parent f7a7b6bedf
commit e0b2e1c3b9
3 changed files with 32 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ class FilamentConfig<T, U> {
final U? renderCallbackOwner;
final Future<Uint8List> Function(String) resourceLoader;
final U? platform;
final U? driver;
final U? sharedContext;
final String? uberArchivePath;
final int stereoscopicEyeCount;
@@ -24,7 +23,6 @@ class FilamentConfig<T, U> {
this.renderCallback,
this.renderCallbackOwner,
this.platform,
this.driver,
this.sharedContext,
this.stereoscopicEyeCount = 1,
this.disableHandleUseAfterFreeCheck = false});
@@ -306,4 +304,9 @@ abstract class FilamentApp<T> {
///
///
Future flush();
///
///
///
void onDestroy(Future Function() callback);
}