native method

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

Implementation

Widget native(Function callBack, CustomNativeAdType type) {
  if (admodel == null || !(admodel?.isad ?? false)) {
    return Container();
  }
  return DynamicNativeAd(
    adPriority: admodel?.nativeAdPriority ?? [],
    type: type,
    callBack: () {
      callBack.call();
    },
  );
}