remove<T extends FastModuleProtocol> method

void remove<T extends FastModuleProtocol>(
  1. T? moudle
)

移除组件

Implementation

void remove<T extends FastModuleProtocol>(T? moudle) {
  if (moudle == null) return;
  FastModuleManager.instance()._modules.remove(moudle.runtimeType.toString());
  if (moudle.widgetsBindingObserver) {
    ambiguate(WidgetsBinding.instance)?.removeObserver(moudle);
  }
}