track static method Null safety

Future<Null> track(
  1. String eventId,
  2. {double? num,
  3. Map<String, dynamic>? variable}
)

Implementation

static Future<Null> track(String eventId,
    {double? num, Map<String, dynamic>? variable}) async {
  Map<String, dynamic> args = {"eventId": eventId};
  if (num != null) {
    args['num'] = num;
  }
  if (variable != null) {
    args['variable'] = variable;
  }
  return await _channel.invokeMethod("track", args);
}