BannerController constructor

BannerController(
  1. int id,
  2. String prefix,
  3. dynamic listener(
    1. BilAdEvents,
    2. 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);
}