flutter_archkit library

Classes

Archkit
Annotation used to mark Presentation methods or BLoC/Controller event handlers for automatic Clean Architecture code generation across Domain and Data layers using archkit generate.
FlavorConfig
Represents a single build flavor (dev, staging, prod, etc.)
FlavorGenerator
Handles writing/updating flavor-related files in the consuming app:
FlavorYamlLoader
Loads flavor definitions from a yaml file (default: flavor.yaml at the project root) and converts them into a List<FlavorConfig>.
ServerConfigGenerator
Generates lib/core/config/server_config.dart in the consuming project.

Constants

archkit → const Archkit
Lowercase constant instance enabling @archkit annotation syntax

Exceptions / Errors

FlavorConfigException
Base type for all flavor-config-related failures.
FlavorYamlEmptyException
Thrown when flavor.yaml exists but is empty, has no flavors: root key, or the root key is not a map.
FlavorYamlNotFoundException
Thrown when no flavor.yaml (or custom path) exists in the project.
FlavorYamlParseException
Thrown when the yaml is malformed (bad syntax) or a specific flavor entry is missing required fields.