fl_api 0.0.2 fl_api: ^0.0.2 copied to clipboard
A new Flutter package project.
import 'package:fl_api/fl_api.dart';
void main() {
FlApi api = FlApiImpl();
sendReq() => api.getMethod(
'endpoint',
option: FlApiOption(
header: FlApiHeader.basic(),
),
);
sendReq().then(
(res) => res.fold(
(error) => null,
(res) => null,
),
);
}