init method

  1. @override
Future<void> init(
  1. int idOSM
)

Implementation

@override
Future<void> init(int idOSM) async {
  if (_streamController.isClosed) {
    _streamController = StreamController<EventOSM>.broadcast();
  }
  if (!_channels.containsKey(idOSM)) {
    _channels[idOSM] = MethodChannel(
      getViewType(idOSM),
      const StandardMethodCodec(),
      messenger,
    );
    handleMethodCall(idOSM);
  }
  // return Future.microtask(() => close(idOSM));
}