main library

Flutter Easy Swagger Generator

A Flutter package that generates clean architecture code from Swagger/OpenAPI specifications. This package helps you quickly set up a Flutter project with a clean architecture structure by automatically generating the necessary code from your API specification.

Features

  • Generates clean architecture code structure
  • Supports both local Swagger files and remote URLs
  • Creates entities, models, repositories, and network layers
  • Generates application layer with use cases
  • Supports concurrent code generation

Usage

import 'package:flutter_easy_swagger_generator/main.dart';

void main(List<String> arguments) async {
  // Generate from local file
  await swaggerGenerator('path/to/swagger.json');

  // Or generate from remote URL
  await swaggerGenerator('https://api.example.com/swagger.json');
}

For more information, see the README.

Functions

main(List<String> arguments) → void
Entry point for the application.