getNativeModule<T extends VoltronNativeModule> method

T? getNativeModule<T extends VoltronNativeModule>(
  1. String type
)

Implementation

T? getNativeModule<T extends VoltronNativeModule>(String type) {
  final module = _nativeModule[type];
  if (module is T) {
    return module;
  }
  return null;
}