BannerController constructor
BannerController(
- int id,
- String prefix,
- dynamic listener(
- BilAdEvents,
- Map<
String, dynamic>
Implementation
BannerController(int id, String prefix,
Function(BilAdEvents, Map<String, dynamic>) listener)
: _channel = MethodChannel(prefix + '_$id'),
super(listener) {
_channel.invokeMethod('setListener');
_channel.setMethodCallHandler(handleEvent);
}