getJavaScriptModule<T extends JavaScriptModule> method

T? getJavaScriptModule<T extends JavaScriptModule>(
  1. String type
)

Implementation

T? getJavaScriptModule<T extends JavaScriptModule>(String type) {
  final module = _jsModule[type];
  if (module is T) {
    return module;
  }
  return null;
}