show method Null safety

Future<void> show(
  1. {BannerAlignment alignment = BannerAlignment.bottom}
)

Loads and shows banner ad

Implementation

Future<void> show(
    {BannerAlignment alignment = BannerAlignment.bottom}) async {
  await FairBidInternal._channel
      .invokeMethod('showAlignedBanner', <String, String>{
    'placement': this.placementId,
    'alignment': alignment == BannerAlignment.top ? 'top' : 'bottom',
  });
}