registerModel method
Register a custom model descriptor at runtime. Returns the resolved asset path the native side will load from. Default throws.
Implementation
@override
Future<String> registerModel(Map<String, Object?> registration) async {
final result = await _methodChannel.invokeMethod<String>(
'registerModel',
registration,
);
if (result == null || result.isEmpty) {
throw StateError('registerModel returned no resolved path');
}
return result;
}