forge_flutter library
Classes
- AbstractProxy
- Base class for all generated proxies
- All
- Applies multiple constraints to the same value
- Application
- Flutter application kernel que gerencia o ciclo de vida da aplicação.
- AsEventListener
- AutoBundle
- Configures automatic bundle generation by scanning source files.
- BaseKernel
- Base interface for all kernels (Application and Kernel).
- BirthDate
- Validates birth date with optional age constraints
- Boot
- Marks a method in a module to be executed during the boot phase.
- Bundle
- Defines a modular component that can register services and perform initialization.
- Choice
- Validates if the value is in a list of options
- ClassCapability
- Capability that controls whether class metadata is included.
- ClassMetadata
- Represents metadata about a class.
- Cnpj
- Validates CNPJ (Brazilian tax ID for companies)
- Collection
- Validates a collection with constraints per field
- ConsoleLogHandler
- Console log handler that prints to stdout with colored formatting.
- Constraint
- Base interface for constraints
- ConstraintExtractor
- Extracts constraints based on class metadata.
- Constructor
- Marks which constructor should be used for dependency injection.
- ConstructorMetadata
- Represents metadata about a constructor.
- ConstructorsCapability
- Capability that enables metadata about constructors.
- CoreBundle
- Cpf
- Validates CPF (Brazilian tax ID for individuals)
- CpfOrCnpj
- Validates CPF or CNPJ (Brazilian tax IDs) Accepts either a valid CPF (11 digits) or CNPJ (14 digits)
- DateRange
- Validates date range
- DeclarationsCapability
- Comprehensive capability that combines all class member capabilities.
- DefaultValidationMessageProvider
- Default provider in English
- Disposable
- Each
- Validates each element of a list with a constraint
- ElementMetadata
- Represents metadata about a program element.
- Validates email format
- Encoder
- EnumCapability
- Capability that enables metadata about enum type.
- EnumDelimiter
- EnumExtractor
- EnumMetadata
- Represents metadata about an enum.
- EnumValueMetadata
- Represents metadata about an enum value.
- EnumValuesCapability
- Capability that enables metadata about enum values.
- EventBus
- Manages event listeners and dispatches events to them.
- EventSubscriber
- Defines a component that subscribes to multiple events.
- FileLogConfig
- File log handler configuration
- FileLogHandler
- File log handler that writes to a file.
- FunctionMetadata
- Base class for function-like metadata (methods, constructors).
- FutureDate
- Validates that date is in the future
- GetterMetadata
- Represents metadata about a getter.
- GettersCapability
- Capability that enables metadata about getters.
- GreaterOrEqual
- Validates value is greater than or equal to a threshold
- GreaterThan
- Validates value is greater than a threshold
- Ignore
-
Inject<
T> - Marks a parameter for dependency injection with specific resolution rules.
- Injector
- Immutable dependency container runtime interface.
- InjectorBuilder
- Defines the interface for building and registering services within a dependency container.
- IsBool
- Validates that the value is a bool
- IsDouble
- Validates that the value is a double
- IsInt
- Validates that the value is an int
- IsList
- Validates that the value is a List
- IsNum
- Validates that the value is a num
- IsString
- Validates that the value is a String
- JsonEncoder
- KernelErrorEvent
- Event dispatched when an error occurs during kernel execution.
- Length
- Validates the length of a string
- LessOrEqual
- Validates value is less than or equal to a threshold
- LessThan
- Validates value is less than a threshold
- ListTransformer
- LogEntry
- Represents a log entry.
- Logger
- Logger instance for a specific tag
- LogHandler
- Handler for processing log entries.
- Mappable
- MapTransformer
- Md5
- Validates MD5 hash format
- MetadataRegistry
- Immutable metadata registry runtime interface.
- MetadataRegistryBuilder
- Defines the interface for building and registering metadata
- MetadataTransformer
- MethodMetadata
- Represents metadata about a method.
- MethodsCapability
- Capability that enables metadata about methods.
- Module
- Marks a class as a module that provides service configurations.
- NotBlank
- Validates that the value is not blank
- NotNull
- Validates that the value is not null
- Optional
- Marks a field as optional (field can be null or missing)
- ParameterMetadata
- Represents metadata about a method or constructor parameter.
- ParametersCapability
- Capability that enables metadata about parameters.
- PastDate
- Validates that date is in the past
- Phone
- Validates phone number using phone_numbers_parser
- PortugueseValidationMessageProvider
- Portuguese message provider
- PrimitiveTransformer
- Property
- Provide
- Marks a method in a module as a provider for a service.
- ProvideEager
- Marks a method in a module as an eager provider.
- ProvideSingleton
- Marks a method in a module as a singleton provider.
- ProxyCapability
- Capability that enables proxy generation for runtime interception.
- ProxyHandler
- Handler for proxy interceptors
- Range
- Validates numeric range
- ReflectCapability
- Base interface for all reflection capabilities.
- Regex
- Validates against a regular expression
- Required
- Marks a method that must be called after the service is constructed.
- Serializer
- SerializerAware
- SerializerContext
- Service
- Marks a class as a service to be registered in the dependency injection container.
- SetterMetadata
- Represents metadata about a setter.
- SettersCapability
- Capability that enables metadata about setters.
- Singleton
- Marks a class as a singleton service to be registered in the dependency injection container.
- SocketClient
- Cliente WebSocket com reconexão automática e listeners
- Transformer
-
TypeMetadata<
T> - Represents a type with its generic type arguments
- ValidationContext
- Validation context that accumulates violations
- ValidationMessageKey
- Validation message keys as constants
- ValidationMessageProvider
- Localized message provider
- Validator
- Violation
- Represents a validation violation
Enums
- DateFormat
- Date format for filenames
- LogFileStrategy
- File organization strategy
- LogLevel
- Log level enumeration.
- RotationStrategy
- File rotation strategy
- SocketState
- Estados possíveis da conexão WebSocket
Mixins
- BaseKernelMixin
- Mixin that implements the common logic of BaseKernel.
-
GenericCaller<
T>
Constants
- cnpj → const Cnpj
- cpf → const Cpf
- cpfOrCnpj → const CpfOrCnpj
- email → const Email
- futureDate → const FutureDate
- isBool → const IsBool
- isDouble → const IsDouble
- isInt → const IsInt
- isList → const IsList
- isNum → const IsNum
- isString → const IsString
- logTag → const String
- md5 → const Md5
- notBlank → const NotBlank
- notNull → const NotNull
- pastDate → const PastDate
- phone → const Phone
Functions
-
isSameType<
C, T> () → bool -
isValueSubtypeOf<
C, T> (C value) → bool
Typedefs
-
AsyncFactory<
T> = Future< T> Function(Injector i) -
AsyncPostCreate<
T> = Future< void> Function(T instance, Injector i) -
EventListener<
T> = FutureOr< void> Function(T event) -
A function that handles events of type
T. -
Factory<
T> = T Function(Injector i) - GetterInterceptor = dynamic Function()? Function(String getterName)
- LogFilter = bool Function(LogEntry entry)
- Filter function type
-
MethodInterceptor
= dynamic Function()? Function(String methodName, List positionalArgs, Map<
Symbol, dynamic> namedArgs) -
PostCreate<
T> = void Function(T instance, Injector i) - SetterInterceptor = void Function()? Function(String setterName, dynamic value)
Exceptions / Errors
- CircularDependencyException
- Thrown when a circular dependency is detected.
- KernelException
- Base exception for all kernel-related errors.
- KernelSetupException
- Exception thrown during kernel setup.
- SerializerException
- Exception thrown when serialization or deserialization fails.
- ServiceNotFoundException
- Thrown when a service is not found in the dependency container.
- ValidationException
- Thrown when validation fails due to one or more violations.