init method
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));
}