fetchAds static method

Future<Map<String, dynamic>?> fetchAds({
  1. String? type,
})

Implementation

static Future<Map<String, dynamic>?> fetchAds({String? type}) async {
  final json = await _channel.invokeMethod<String>('fetchAds', {'type': type});
  if (json == null) return null;
  return jsonDecode(json) as Map<String, dynamic>;
}