api function

void api(
  1. String project
)

generate template for api

Implementation

void api(String project) {
  String dir = '$project/lib/data/network';

  _api(project, dir);
  _constant(project, dir);
  _handler(project, dir);
  _exception(project, dir);
}