native method

Widget native(
  1. Function callBack,
  2. MyAds type
)

Implementation

Widget native(Function callBack, MyAds type) {
  if (admodel == null) {
    return Container();
  }
  return DynamicNativeAd(
    admodel: admodel!,
    type: type.name,
    callBack: () {
      callBack.call();
    },
  );
}