menu
union_annotation package
documentation
union_annotation.dart
union_annotation.dart
dark_mode
light_mode
union_annotation
library
Classes
EnumCase
A configuration for a union case of given enum
value
.
TypeCase
A configuration for a union case of given class
type
.
Union
An annotation that marks the target to be a union type.
UnionUtilities
A class that allows for the configuration of utilities that are generated.
Enums
UnionParamsType
The type of parameters used by the generated utilities for annotated unions.
Exceptions / Errors
InvalidUnionCastError
An error which can be thrown in runtime when a generated utility attempts to cast a union to a type that is not a valid union subtype.
UnknownUnionCaseError
An error which can be thrown in runtime when a generated utility is given an object that is not a valid union subtype.This should never be the case, if the union was successfully generated before running the program.
union_annotation package
documentation
union_annotation.dart
union_annotation
package
Libraries
union_annotation
union_annotation library