formula1_data 0.1.0 formula1_data: ^0.1.0 copied to clipboard
Flutter plugin for getting Formula1 data.
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());
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