AdmostBannerController constructor

AdmostBannerController(
  1. int id,
  2. dynamic listener(
    1. AdmostAdEvent,
    2. Map<String, dynamic>
    )?
)

Implementation

AdmostBannerController(
    int id, Function(AdmostAdEvent, Map<String, dynamic>)? listener)
    : _channel = MethodChannel('admost_flutter/banner_$id'),
      super(listener) {
  if (listener != null) {
    _channel.setMethodCallHandler(handleEvent);
    _channel.invokeMethod('setListener');
  }
}