formula1_data
A Dart package of Formula1™.
Sample
Constructors
Get Constructors data.
import 'package:/formula1_data/formula1_data.dart';
final year = DateTime.now().year;
final constructors = await getConstructors(year: year);
print(constructors.toString());
Drivers
Get Drivers data.
import 'package:/formula1_data/formula1_data.dart';
final year = DateTime.now().year;
final drivers = await getDrivers(year: year);
print(drivers.toString());
Results
Get Results data.
import 'package:/formula1_data/formula1_data.dart';
final year = DateTime.now().year;
final int round = 1;
final results = await getResults(year: year, round: round);
print(results.toString());
Schedule
Get Schedule data.
import 'package:/formula1_data/formula1_data.dart';
final schedules = await getSchedule();
print(schedules.toString());
Status
Get Status data.
import 'package:/formula1_data/formula1_data.dart';
final status = await getStatus();
print(status.toString());
Dataset License
Basically, the datasets are licensed under Apache License 2.0
Libraries
- formula1_data
- A Formula1 data package.