(doc) add documentation for destroyAsset instances

This commit is contained in:
Nick Fisher
2025-06-23 12:25:18 +08:00
parent 45d8c7b929
commit ce23b9f3cd

View File

@@ -261,7 +261,10 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
_onDestroy.clear();
}
///
/// If [asset] is actually an instance (i.e. was created via createInstance),
/// its resources may not actually be destroyed until the parent asset is
/// destroyed. It may be marked as unused, and recycled the next time
/// createInstance is called.
///
///
Future destroyAsset(covariant FFIAsset asset) async {