fl_api 0.0.1 copy "fl_api: ^0.0.1" to clipboard
fl_api: ^0.0.1 copied to clipboard

outdated

A new Flutter package project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fl_api/fl_api.dart';

void main() {
  FlApi api = FlApiImpl(baseUrl: 'base_url');
  sendReq() => api.getMethod(
        'endpoint',
        option: FlApiOption(
          header: FlApiHeader.basic(),
        ),
      );

  sendReq().then(
    (res) => res.fold(
      (error) => null,
      (res) => null,
    ),
  );
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dartz, dio, flutter, freezed_annotation

More

Packages that depend on fl_api