start method Null safety

Future<void> start(
  1. {required Flight flight}
)

Implementation

static Future<void> start({required Flight flight}) async {
  Map<String, dynamic> flightJson = flight.toJson();

  await _api?.start(jsonEncode(flightJson));
}