platformView property
Implementation
late final platformView = () {
final String viewType = 'BidmadBannerRefinedWidget';
final Map<String, dynamic> creationParams = {"key": ad.key};
if (defaultTargetPlatform == TargetPlatform.android) {
return AndroidView(
viewType: viewType,
key: refreshKey,
creationParams: creationParams,
onPlatformViewCreated: null,
creationParamsCodec: const StandardMessageCodec(),
);
} else if (defaultTargetPlatform == TargetPlatform.iOS) {
return UiKitView(
viewType: viewType,
creationParams: creationParams,
onPlatformViewCreated: null,
creationParamsCodec: const StandardMessageCodec(),
);
} else {
throw Exception("Not Support Platform");
}
}();