theme_annotation library

Classes

AlignmentConverter
AppBarThemeConverter
AutovalidateModeConverter
AxisConverter
BlendModeConverter
BorderRadiusConverter
BorderSideConverter
BorderStyleConverter
BottomAppBarThemeConverter
BottomNavigationBarThemeDataConverter
BottomNavigationBarTypeConverter
BottomSheetThemeDataConverter
BoxBorderConverter
BoxConstraintsConverter
BoxDecorationConverter
BoxFitConverter
BoxShadowConverter
BoxShapeConverter
BrightnessConverter
ButtonBarLayoutBehaviorConverter
ButtonBarThemeDataConverter
ButtonStyleConverter
ButtonTextThemeConverter
ButtonThemeDataConverter
CardThemeConverter
CheckboxThemeDataConverter
ChipThemeDataConverter
ClipConverter
ColorConverter
ColorSchemeConverter
CrossAxisAlignmentConverter
CrossFadeStateConverter
CupertinoTextThemeDataConverter
CupertinoThemeDataConverter
DataTableThemeDataConverter
DecorationImageConverter
DecorationPositionConverter
DialogThemeConverter
DividerThemeDataConverter
DragStartBehaviorConverter
EdgeInsetsGeometryConverter
ElevatedButtonThemeDataConverter
FilterQualityConverter
FlexFitConverter
FloatingActionButtonAnimatorConverter
FloatingActionButtonLocationConverter
FloatingActionButtonThemeDataConverter
FloatingLabelBehaviorConverter
FontFeatureConverter
FontStyleConverter
FontWeightConverter
GradientConverter
GradientTransformConverter
HitTestBehaviorConverter
IconDataConverter
IconThemeDataConverter
ImageProviderConverter
ImageRepeatConverter
InputBorderConverter
InputDecorationThemeConverter
InteractiveInkFeatureFactoryConverter
JsonConverter<T, S>
Implement this class to provide custom converters for a specific Type.
JsonEnum
Allows configuration of how enum elements are treated as JSON.
JsonKey
An annotation used to specify how a field is serialized.
JsonLiteral
An annotation used to generate a private field containing the contents of a JSON file.
JsonSerializable
An annotation used to specify a class to generate code for.
JsonValue
An annotation used to specify how a enum value is serialized.
LocaleConverter
MainAxisAlignmentConverter
MainAxisSizeConverter
MaterialBannerThemeDataConverter
MaterialColorConverter
MaterialStatePropertyBorderSideConverter
MaterialStatePropertyColorConverter
MaterialStatePropertyDoubleConverter
MaterialStatePropertyEdgeInsetsGeometryConverter
MaterialStatePropertyMouseCursorConverter
MaterialStatePropertyOutlinedBorderConverter
MaterialStatePropertySizeConverter
MaterialStatePropertyTextStyleConverter
MaterialTapTargetSizeConverter
MaterialTypeConverter
MaxLengthEnforcementConverter
MouseCursorConverter
NotchedShapeConverter
NullableAlignmentConverter
NullableAppBarThemeConverter
NullableAutovalidateModeConverter
NullableAxisConverter
NullableBlendModeConverter
NullableBorderRadiusConverter
NullableBorderSideConverter
NullableBorderStyleConverter
NullableBottomAppBarThemeConverter
NullableBottomNavigationBarThemeDataConverter
NullableBottomNavigationBarTypeConverter
NullableBottomSheetThemeDataConverter
NullableBoxBorderConverter
NullableBoxConstraintsConverter
NullableBoxDecorationConverter
NullableBoxFitConverter
NullableBoxShadowConverter
NullableBoxShapeConverter
NullableBrightnessConverter
NullableButtonBarLayoutBehaviorConverter
NullableButtonBarThemeDataConverter
NullableButtonStyleConverter
NullableButtonTextThemeConverter
NullableButtonThemeDataConverter
NullableCardThemeConverter
NullableCheckboxThemeDataConverter
NullableChipThemeDataConverter
NullableClipConverter
NullableColorConverter
NullableColorSchemeConverter
NullableCrossAxisAlignmentConverter
NullableCrossFadeStateConverter
NullableCupertinoTextThemeDataConverter
NullableCupertinoThemeDataConverter
NullableDataTableThemeDataConverter
NullableDecorationImageConverter
NullableDecorationPositionConverter
NullableDialogThemeConverter
NullableDividerThemeDataConverter
NullableDragStartBehaviorConverter
NullableEdgeInsetsGeometryConverter
NullableElevatedButtonThemeDataConverter
NullableFilterQualityConverter
NullableFlexFitConverter
NullableFloatingActionButtonAnimatorConverter
NullableFloatingActionButtonLocationConverter
NullableFloatingActionButtonThemeDataConverter
NullableFloatingLabelBehaviorConverter
NullableFontFeatureConverter
NullableFontStyleConverter
NullableFontWeightConverter
NullableGradientConverter
NullableGradientTransformConverter
NullableHitTestBehaviorConverter
NullableIconDataConverter
NullableIconThemeDataConverter
NullableImageProviderConverter
NullableImageRepeatConverter
NullableInputBorderConverter
NullableInputDecorationThemeConverter
NullableInteractiveInkFeatureFactoryConverter
NullableLocaleConverter
NullableMainAxisAlignmentConverter
NullableMainAxisSizeConverter
NullableMaterialBannerThemeDataConverter
NullableMaterialColorConverter
NullableMaterialStatePropertyBorderSideConverter
NullableMaterialStatePropertyColorConverter
NullableMaterialStatePropertyDoubleConverter
NullableMaterialStatePropertyEdgeInsetsGeometryConverter
NullableMaterialStatePropertyMouseCursorConverter
NullableMaterialStatePropertyOutlinedBorderConverter
NullableMaterialStatePropertySizeConverter
NullableMaterialStatePropertyTextStyleConverter
NullableMaterialTapTargetSizeConverter
NullableMaterialTypeConverter
NullableMaxLengthEnforcementConverter
NullableMouseCursorConverter
NullableNavigationRailLabelTypeConverter
NullableNavigationRailThemeDataConverter
NullableNotchedShapeConverter
NullableOffsetConverter
NullableOrdinalSortKeyConverter
NullableOutlinedBorderConverter
NullableOutlinedButtonThemeDataConverter
NullablePageTransitionsBuilderConverter
NullablePageTransitionsThemeConverter
NullablePopupMenuThemeDataConverter
NullableRadioThemeDataConverter
NullableRadiusConverter
NullableRangeSliderThumbShapeConverter
NullableRangeSliderTickMarkShapeConverter
NullableRangeSliderTrackShapeConverter
NullableRangeSliderValueIndicatorShapeConverter
NullableRectConverter
NullableScrollbarThemeDataConverter
NullableScrollPhysicsConverter
NullableScrollViewKeyboardDismissBehaviorConverter
NullableSemanticsTagConverter
NullableShadowConverter
NullableShapeBorderConverter
NullableShowValueIndicatorConverter
NullableSizeConverter
NullableSliderComponentShapeConverter
NullableSliderThemeDataConverter
NullableSliderTickMarkShapeConverter
NullableSliderTrackShapeConverter
NullableSmartDashesTypeConverter
NullableSmartQuotesTypeConverter
NullableSnackBarBehaviorConverter
NullableSnackBarThemeDataConverter
NullableStackFitConverter
NullableStrutStyleConverter
NullableSwitchThemeDataConverter
NullableSystemUiOverlayStyleConverter
NullableTabBarIndicatorSizeConverter
NullableTabBarThemeConverter
NullableTargetPlatformConverter
NullableTextAlignConverter
NullableTextAlignVerticalConverter
NullableTextBaselineConverter
NullableTextButtonThemeDataConverter
NullableTextCapitalizationConverter
NullableTextDecorationConverter
NullableTextDecorationStyleConverter
NullableTextDirectionConverter
NullableTextHeightBehaviorConverter
NullableTextInputActionConverter
NullableTextInputTypeConverter
NullableTextOverflowConverter
NullableTextSelectionThemeDataConverter
NullableTextStyleConverter
NullableTextThemeConverter
NullableTextWidthBasisConverter
NullableThemeDataConverter
NullableTileModeConverter
NullableTimePickerThemeDataConverter
NullableToggleButtonsThemeDataConverter
NullableToolbarOptionsConverter
NullableTooltipThemeDataConverter
NullableTypographyConverter
NullableVerticalDirectionConverter
NullableVisualDensityConverter
OffsetConverter
OrdinalSortKeyConverter
OutlinedBorderConverter
OutlinedButtonThemeDataConverter
PageTransitionsBuilderConverter
PageTransitionsThemeConverter
PopupMenuThemeDataConverter
RadioThemeDataConverter
RadiusConverter
RangeSliderThumbShapeConverter
RangeSliderTickMarkShapeConverter
RangeSliderTrackShapeConverter
RangeSliderValueIndicatorShapeConverter
RectConverter
ScrollbarThemeDataConverter
ScrollPhysicsConverter
ScrollViewKeyboardDismissBehaviorConverter
SemanticsTagConverter
ShadowConverter
ShapeBorderConverter
ShowValueIndicatorConverter
SizeConverter
SliderComponentShapeConverter
SliderThemeDataConverter
SliderTickMarkShapeConverter
SliderTrackShapeConverter
SmartDashesTypeConverter
SmartQuotesTypeConverter
SnackBarBehaviorConverter
SnackBarThemeDataConverter
StackFitConverter
StrutStyleConverter
SwitchThemeDataConverter
SystemUiOverlayStyleConverter
TabBarIndicatorSizeConverter
TabBarThemeConverter
TargetPlatformConverter
TextAlignConverter
TextAlignVerticalConverter
TextBaselineConverter
TextButtonThemeDataConverter
TextCapitalizationConverter
TextDecorationConverter
TextDecorationStyleConverter
TextDirectionConverter
TextHeightBehaviorConverter
TextInputActionConverter
TextInputTypeConverter
TextOverflowConverter
TextSelectionThemeDataConverter
TextStyleConverter
TextThemeConverter
TextWidthBasisConverter
ThemeBase<T>
ThemeDataAnnotation
ThemeDataConverter
TileModeConverter
TimePickerThemeDataConverter
ToggleButtonsThemeDataConverter
ToolbarOptionsConverter
TooltipThemeDataConverter
TypographyConverter
VerticalDirectionConverter
VisualDensityConverter

Enums

FieldRename
Values for the automatic field renaming behavior for JsonSerializable.

Functions

$checkedConvert<T>(Map map, String key, T castFunc(dynamic), {Object? readValue(Map, String)?}) → T
Helper function used in generated code when JsonSerializableGenerator.checked is true.
$checkedCreate<T>(String className, Map map, T constructor(S <S>(String, S (Object?), {Object? readValue(Map, String)?})), {Map<String, String> fieldKeyMap = const {}}) → T
Helper function used in generated code when JsonSerializableGenerator.checked is true.
$checkedNew<T>(String className, Map map, T constructor(), {Map<String, String>? fieldKeyMap}) → T
Helper function used in generated code when JsonSerializableGenerator.checked is true.
$checkKeys(Map map, {List<String>? allowedKeys, List<String>? requiredKeys, List<String>? disallowNullValues}) → void
Helper function used in generated fromJson code when JsonSerializable.disallowUnrecognizedKeys is true for an annotated type or JsonKey.required is true for any annotated fields.
$enumDecode<K extends Enum, V>(Map<K, V> enumValues, Object? source, {K? unknownValue}) → K
Returns the key associated with value source from enumValues, if one exists.
$enumDecodeNullable<K extends Enum, V>(Map<K, V> enumValues, Object? source, {Enum? unknownValue}) → K?
Returns the key associated with value source from enumValues, if one exists.

Exceptions / Errors

BadKeyException
A base class for exceptions thrown when decoding JSON.
CheckedFromJsonException
Exception thrown if there is a runtime exception in fromJson code generated when JsonSerializableGenerator.checked is true
DisallowedNullValueException
Exception thrown if there are keys with disallowed null values in a JSON map that was provided during deserialization.
MissingRequiredKeysException
Exception thrown if there are missing required keys in a JSON map that was provided during deserialization.
UnrecognizedKeysException
Exception thrown if there are unrecognized keys in a JSON map that was provided during deserialization.