connect method Null safety

Future<bool?> connect(
  1. {required String androidApiKey,
  2. required String iOSApiKey,
  3. required bool debug}
)

connect to TapJoy, all fields required.

Implementation

Future<bool?> connect(
    {required String androidApiKey,
    required String iOSApiKey,
    required bool debug}) async {
  final bool? connectionResult =
      await _channel.invokeMethod('connectTapJoy', <String, dynamic>{
    'androidApiKey': androidApiKey,
    "iOSApiKey": iOSApiKey,
    "debug": debug,
  });
  return connectionResult;
}