ThemeDecoder class
Decoder capable of converting JSON compatible values into Flutter Theme related classes and enums.
All decoder functions, in addition the the type that can be decoded, will accept a value of the returned type and return it unmodified. However, when mixing JSON compatible values and concrete values, you must disable the JSON Schema validator as it will not be able to validate concrete instances.
Unless otherwise stated, each function will return null
when given an
input of null
.
- Annotations
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decodeAlignment(
dynamic value, {bool validate = true}) → Alignment? -
Decodes the given
value
to an Alignment. Supported values are: -
decodeAppBarTheme(
dynamic value, {bool validate = true}) → AppBarTheme? -
Decodes the given
value
to an AppBarTheme. This expects the givenvalue
to follow the structure below: -
decodeAutovalidateMode(
dynamic value, {bool validate = true}) → AutovalidateMode? -
Decodes the given
value
to an AutovalidateMode. Supported values are: -
decodeAxis(
dynamic value, {bool validate = true}) → Axis? -
Decodes the given
value
to an Axis. Supported values are: -
decodeBlendMode(
dynamic value, {bool validate = true}) → BlendMode? -
Decodes the given
value
to an BlendMode. Supported values are: -
decodeBorderRadius(
dynamic value, {bool validate = true}) → BorderRadius? -
Decodes the given value to a BorderRadius. The
value
may be a String, an int, a double, or a Map-like object. -
decodeBorderSide(
dynamic value, {bool validate = true}) → BorderSide? -
Decodes the given
value
to an BorderSide. This expects the givenvalue
to follow the structure below: -
decodeBorderStyle(
dynamic value, {bool validate = true}) → BorderStyle? -
Decodes the
value
to a BorderStyle. Supported values are: -
decodeBottomAppBarTheme(
dynamic value, {bool validate = true}) → BottomAppBarTheme? -
Decodes the given
value
to an BottomAppBarTheme. This expects the givenvalue
to follow the structure below: -
Decodes the given
value
to an BottomNavigationBarThemeData. This expects the givenvalue
to follow the structure below: -
Decodes the
value
to a BottomNavigationBarType. Supported values are: -
decodeBottomSheetThemeData(
dynamic value, {bool validate = true}) → BottomSheetThemeData? -
Decodes the given
value
to an BottomSheetThemeData. This expects the givenvalue
to follow the structure below: -
decodeBoxBorder(
dynamic value, {bool validate = true}) → BoxBorder? -
Decodes the given
value
into a BoxBorder. If the value isnull
thennull
will be returned. -
decodeBoxConstraints(
dynamic value, {bool validate = true}) → BoxConstraints? -
Decodes the given
value
into a BoxConstraints. If the value isnull
thennull
will be returned. Otherwise, this expects a Map like value that in JSON would look like: -
decodeBoxDecoration(
dynamic value, {bool validate = true}) → BoxDecoration? -
Decodes the given
value
into a BoxDecoration. If the value isnull
thennull
will be returned. Otherwise, this expects a Map like value that in JSON would look like: -
decodeBoxFit(
dynamic value, {bool validate = true}) → BoxFit? -
Decodes the
value
to a BoxFit. Supported values are: -
decodeBoxShadow(
dynamic value, {bool validate = true}) → BoxShadow? -
Decodes the given
value
into a BoxDecoration. If the value isnull
thennull
will be returned. Otherwise, this expects a Map like value that in JSON would look like: -
decodeBoxShape(
dynamic value, {bool validate = true}) → BoxShape? -
Decodes the
value
to a BoxShape. Supported values are: -
decodeBrightness(
dynamic value, {bool validate = true}) → Brightness? -
Decodes the
value
to a Brightness. Supported values are: -
decodeButtonBarLayoutBehavior(
dynamic value, {bool validate = true}) → ButtonBarLayoutBehavior? -
Decodes the
value
to a ButtonBarLayoutBehavior. Supported values are: -
decodeButtonBarThemeData(
dynamic value, {bool validate = true}) → ButtonBarThemeData? -
Decodes the given
value
to an ButtonBarThemeData. This expects the givenvalue
to follow the structure below: -
decodeButtonStyle(
dynamic value, {bool validate = true}) → ButtonStyle? -
Decodes the
value
to a ButtonStyle. -
decodeButtonTextTheme(
dynamic value, {bool validate = true}) → ButtonTextTheme? -
Decodes the
value
to a ButtonTextTheme. Supported values are: -
decodeButtonThemeData(
dynamic value, {bool validate = true}) → ButtonThemeData? -
Decodes the given
value
to an ButtonThemeData. This expects the givenvalue
to follow the structure below: -
decodeCardTheme(
dynamic value, {bool validate = true}) → CardTheme? -
Decodes the given
value
to an CardTheme. This expects the givenvalue
to follow the structure below: -
decodeCheckboxThemeData(
dynamic value, {bool validate = true}) → CheckboxThemeData? -
Decodes the given
value
to an CheckboxThemeData. This expects the givenvalue
to follow the structure below: -
decodeChipThemeData(
dynamic value, {bool validate = true}) → ChipThemeData? -
Decodes the given
value
to an CardTheme. This expects the givenvalue
to follow the structure below: -
decodeClip(
dynamic value, {bool validate = true}) → Clip? -
Decodes the
value
to a Clip. Supported values are: -
decodeColor(
dynamic value, {bool validate = true}) → Color? -
Decodes a given
value
into a color. Avalue
ofnull
will result innull
being returned. -
decodeColorScheme(
dynamic value, {bool validate = true}) → ColorScheme? -
Decodes the given
value
to an CardTheme. This expects the givenvalue
to follow the structure below: -
decodeCrossAxisAlignment(
dynamic value, {bool validate = true}) → CrossAxisAlignment? -
Decodes the
value
to a CrossAxisAlignment. Supported values are: -
decodeCrossFadeState(
dynamic value, {bool validate = true}) → CrossFadeState? -
Decodes the
value
to a CrossFadeState. Supported values are: -
decodeCupertinoTextThemeData(
dynamic value, {bool validate = true}) → CupertinoTextThemeData? -
Decodes the given
value
to an CupertinoTextThemeData. This expects the givenvalue
to follow the structure below: -
decodeCupertinoThemeData(
dynamic value, {bool validate = true}) → CupertinoThemeData? -
Decodes the given
value
to an CupertinoThemeData. This expects the givenvalue
to follow the structure below: -
decodeDataTableThemeData(
dynamic value, {bool validate = true}) → DataTableThemeData? -
Decodes the given
value
to an DataTableThemeData. This expects the givenvalue
to be of the following structure: -
decodeDecorationImage(
dynamic value, {bool validate = true}) → DecorationImage? -
Decodes the given
value
to an DecorationImage. This expects the givenvalue
to follow the structure below: -
decodeDecorationPosition(
dynamic value, {bool validate = true}) → DecorationPosition? -
Decodes the
value
to a DecorationPosition. Supported values are: -
decodeDialogTheme(
dynamic value, {bool validate = true}) → DialogTheme? -
Decodes the given
value
to an DialogTheme. This expects the givenvalue
to follow the structure below: -
decodeDividerThemeData(
dynamic value, {bool validate = true}) → DividerThemeData? -
Decodes the given
value
to an DividerThemeData. This expects the givenvalue
to follow the structure below: -
decodeDragStartBehavior(
dynamic value, {bool validate = true}) → DragStartBehavior? -
Decodes the given
value
to an DragStartBehavior. Supported values are: -
decodeEdgeInsetsGeometry(
dynamic value, {bool validate = true}) → EdgeInsetsGeometry? -
Decodes the
value
into an EdgeInsetsGeometry. -
decodeElevatedButtonThemeData(
dynamic value, {bool validate = true}) → ElevatedButtonThemeData? -
Decodes the given
value
to an ElevatedButtonThemeData. This expects the givenvalue
to be of the following structure: -
decodeFilterQuality(
dynamic value, {bool validate = true}) → FilterQuality? -
Decodes the
value
to a FilterQuality. Supported values are: -
decodeFlexFit(
dynamic value, {bool validate = true}) → FlexFit? -
Decodes the
value
to a FlexFit. Supported values are: -
decodeFloatingActionButtonAnimator(
dynamic value, {bool validate = true}) → FloatingActionButtonAnimator? -
Decodes the
value
to a FloatingActionButtonAnimator. Supported values are: -
decodeFloatingActionButtonLocation(
dynamic value, {bool validate = true}) → FloatingActionButtonLocation? -
Decodes the
value
to a FloatingActionButtonLocation. Supported values are: -
decodeFloatingActionButtonThemeData(
dynamic value, {bool validate = true}) → FloatingActionButtonThemeData? -
Decodes the given
value
to an FloatingActionButtonThemeData. This expects the givenvalue
to follow the structure below: -
decodeFloatingLabelBehavior(
dynamic value, {bool validate = true}) → FloatingLabelBehavior? -
Decodes the
value
to a FloatingLabelBehavior. Supported values are: -
decodeFontFeature(
dynamic value, {bool validate = true}) → FontFeature? -
Decodes the given
value
to an FontFeature. This expects the givenvalue
to follow the structure below: -
decodeFontStyle(
dynamic value, {bool validate = true}) → FontStyle? -
Decodes the
value
to a FontStyle. Supported values are: -
decodeFontWeight(
dynamic value, {bool validate = true}) → FontWeight? -
Decodes the
value
to a FontWeight. Supported values are: -
decodeGradient(
dynamic value, {bool validate = true}) → Gradient? -
Decodes the given
value
into a Gradient. If the value isnull
thennull
will be returned. -
decodeGradientTransform(
dynamic value, {bool validate = true}) → GradientTransform? -
Decodes the given
value
into a GradientTransform. If the value isnull
thennull
will be returned. -
decodeHitTestBehavior(
dynamic value, {bool validate = true}) → HitTestBehavior? -
Decodes the given
value
into a HitTestBehavior. Supported values are: -
decodeIconData(
dynamic value, {bool validate = true}) → IconData? -
Decodes the given
value
into an IconData. If the value isnull
thennull
will be returned. -
decodeIconThemeData(
dynamic value, {bool validate = true}) → IconThemeData? -
Decodes the given
value
into an IconThemeData. If the value isnull
thennull
will be returned. -
decodeImageProvider(
dynamic value, {bool validate = true}) → ImageProvider< Object> ? -
Decodes the given
value
to an ImageProvider. This expects a specific "type" attribute to be one of: -
decodeImageRepeat(
dynamic value, {bool validate = true}) → ImageRepeat? -
Decodes the given
value
into an ImageRepeat. Supported values are: -
decodeInputBorder(
dynamic value, {bool validate = true}) → InputBorder? -
Decodes the given
value
to an InputBorder. This expects a specific "type" attribute to be one of: -
decodeInputDecorationTheme(
dynamic value, {bool validate = true}) → InputDecorationTheme? -
Decodes the given
value
to an InputDecorationTheme. This expects the givenvalue
to be of the following structure: -
decodeInteractiveInkFeatureFactory(
dynamic value, {bool validate = true}) → InteractiveInkFeatureFactory? -
Decodes the
value
to an InteractiveInkFeatureFactory. Supported values are: -
decodeLocale(
dynamic value, {bool validate = true}) → Locale? -
Decodes the given
value
to an Locale. This expects the givenvalue
to be of the following structure: -
decodeMainAxisAlignment(
dynamic value, {bool validate = true}) → MainAxisAlignment? -
Decodes the
value
to a MainAxisAlignment. Supported values are: -
decodeMainAxisSize(
dynamic value, {bool validate = true}) → MainAxisSize? -
Decodes the
value
to a MainAxisSize. Supported values are: -
decodeMaterialBannerThemeData(
dynamic value, {bool validate = true}) → MaterialBannerThemeData? -
Decodes the given
value
to an MaterialBannerThemeData. This expects the givenvalue
to be of the following structure: -
decodeMaterialColor(
dynamic value, {bool validate = true}) → MaterialColor? -
Decodes the given
value
to an MaterialColor. This expects the givenvalue
to be of the following structure: -
decodeMaterialStatePropertyBorderSide(
dynamic value, {bool validate = true}) → MaterialStateProperty< BorderSide?> ? -
Decodes a
value
into aBorderSide
based MaterialStateProperty. This accepts aBorderSide
or a String which will be resolved for all states. -
decodeMaterialStatePropertyColor(
dynamic value, {bool validate = true}) → MaterialStateProperty< Color?> ? -
Decodes a
value
into aColor
based MaterialStateProperty. This accepts aColor
or a String which will be resolved for all states. -
decodeMaterialStatePropertyDouble(
dynamic value, {bool validate = true}) → MaterialStateProperty< double?> ? -
Decodes a
value
into adouble
based MaterialStateProperty. This accepts adouble
or a String which will be resolved for all states. -
decodeMaterialStatePropertyEdgeInsetsGeometry(
dynamic value, {bool validate = true}) → MaterialStateProperty< EdgeInsetsGeometry?> ? -
Decodes a
value
into aEdgeInsetsGeometry
based MaterialStateProperty. This accepts aEdgeInsetsGeometry
or a String which will be resolved for all states. -
decodeMaterialStatePropertyMouseCursor(
dynamic value, {bool validate = true}) → MaterialStateProperty< MouseCursor?> ? -
Decodes a
value
into aMouseCursor
based MaterialStateProperty. This accepts aMouseCursor
or a String which will be resolved for all states. -
decodeMaterialStatePropertyOutlinedBorder(
dynamic value, {bool validate = true}) → MaterialStateProperty< OutlinedBorder?> ? -
Decodes a
value
into aOutlinedBorder
based MaterialStateProperty. This accepts aOutlinedBorder
or a String which will be resolved for all states. -
decodeMaterialStatePropertySize(
dynamic value, {bool validate = true}) → MaterialStateProperty< Size?> ? -
Decodes a
value
into aSize
based MaterialStateProperty. This accepts aSize
or a String which will be resolved for all states. -
decodeMaterialStatePropertyTextStyle(
dynamic value, {bool validate = true}) → MaterialStateProperty< TextStyle?> ? -
Decodes a
value
into aTextStyle
based MaterialStateProperty. This accepts aTextStyle
or a String which will be resolved for all states. -
decodeMaterialTapTargetSize(
dynamic value, {bool validate = true}) → MaterialTapTargetSize? -
Decodes the
value
to aMaterialTargetTapSize
. Supported values are: -
decodeMaterialType(
dynamic value, {bool validate = true}) → MaterialType? -
Decodes the
value
to a MaterialType. Supported values are: -
decodeMatrix4(
dynamic value, {bool validate = true}) → Matrix4? -
Decodes the
value
to a Matrix4. This requires the value to be an Iterable of double with exactly 16 elements in it. -
decodeMaxLengthEnforcement(
dynamic value, {bool validate = true}) → MaxLengthEnforcement? -
Decodes the
value
to a MaxLengthEnforcement. Supported values are: -
decodeMouseCursor(
dynamic value, {bool validate = true}) → MouseCursor? -
Decodes the given
value
to a MouseCursor. There must be a "type" attribute that is one of: -
Decodes the
value
to a NavigationRailLabelType. Supported values are: -
Decodes the given
value
to an NavigationRailThemeData. This expects the givenvalue
to be of the following structure: -
decodeNotchedShape(
dynamic value, {bool validate = true}) → NotchedShape? -
Decodes the
value
to a NotchedShape. Supported values are: -
decodeOffset(
dynamic value, {bool validate = true}) → Offset? -
Decodes the given
value
to an Offset. This expects the givenvalue
to be of the following structure: -
decodeOrdinalSortKey(
dynamic value, {bool validate = false}) → OrdinalSortKey? -
Decodes the given
value
to an OrdinalSortKey. This expects the givenvalue
to be of the following structure: -
decodeOutlinedBorder(
dynamic value, {bool validate = true}) → OutlinedBorder? - Decodes a given Map-like value into a OutlinedBorder. The value returned depends on the "type" parameter. The "type" must be one of:
-
decodeOutlinedButtonThemeData(
dynamic value, {bool validate = true}) → OutlinedButtonThemeData? -
Decodes the given
value
to an OutlinedButtonThemeData. This expects the givenvalue
to be of the following structure: -
decodeOverflow(
dynamic value, {bool validate = true}) → dynamic -
Decodes the
value
to aOverflow
. Supported values are: -
decodePageTransitionsBuilder(
dynamic value, {bool validate = true}) → PageTransitionsBuilder? -
Decodes the
value
to a PageTransitionsBuilder. Supported values are: -
decodePageTransitionsTheme(
dynamic value, {bool validate = true}) → PageTransitionsTheme? -
Decodes the given
value
to a PopupMenuThemeData. This expects the givenvalue
to be of the following structure: -
decodePopupMenuThemeData(
dynamic value, {bool validate = true}) → PopupMenuThemeData? -
Decodes the given
value
to a PopupMenuThemeData. This expects the givenvalue
to be of the following structure: -
decodeRadioThemeData(
dynamic value, {bool validate = true}) → RadioThemeData? -
Decodes the given
value
to an RadioThemeData. This expects the givenvalue
to follow the structure below: -
decodeRadius(
dynamic value, {bool validate = true}) → Radius? -
Decodes the given
value
to a Radius. This can be a String, int, double, or an object. If this is an object, there must be a "type" attribute that is one of: -
decodeRangeSliderThumbShape(
dynamic value, {bool validate = true}) → RangeSliderThumbShape? -
Decodes the given
value
to a RangeSliderThumbShape. This expects a "type" attribute to be one of: -
decodeRangeSliderTickMarkShape(
dynamic value, {bool validate = true}) → RangeSliderTickMarkShape? -
Decodes the given
value
to a RangeSliderTickMarkShape. This expects a "type" attribute to be one of: -
decodeRangeSliderTrackShape(
dynamic value, {bool validate = true}) → RangeSliderTrackShape? -
Decodes the
value
to a RangeSliderTrackShape. Supported values are: -
decodeRangeSliderValueIndicatorShape(
dynamic value, {bool validate = true}) → RangeSliderValueIndicatorShape? -
Decodes the
value
to a RangeSliderValueIndicatorShape. Supported values are: -
decodeRect(
dynamic value, {bool validate = true}) → Rect? -
Decodes the
value
to a Rect. Ifvalue
is notnull
then it must contain a property named "type" with one of the following values: -
decodeScrollbarThemeData(
dynamic value, {bool validate = true}) → ScrollbarThemeData? -
Decodes the given
value
to an ScrollbarThemeData. This expects the givenvalue
to follow the structure below: -
decodeScrollPhysics(
dynamic value, {bool validate = true}) → ScrollPhysics? -
Decodes the
value
to a ScrollPhysics. Ifvalue
is notnull
then it must contain a property named "type" with one of the following values: -
decodeScrollViewKeyboardDismissBehavior(
dynamic value, {bool validate = true}) → ScrollViewKeyboardDismissBehavior? -
Decodes the
value
to a ScrollViewKeyboardDismissBehavior. Supported values are: -
decodeSemanticsTag(
dynamic value, {bool validate = false}) → SemanticsTag? -
Decodes the given
value
to an SemanticsTag. This expects the givenvalue
to be of the following structure: -
decodeShadow(
dynamic value, {bool validate = true}) → Shadow? -
Decodes the given
value
to a Shadow. This expects thevalue
to have the following structure: -
decodeShapeBorder(
dynamic value, {bool validate = true}) → ShapeBorder? - Decodes a given Map-like value into a ShapeBorder. The value returned depends on the "type" parameter. The "type" must be one of:
-
decodeShowValueIndicator(
dynamic value, {bool validate = true}) → ShowValueIndicator? -
Decodes the
value
to a ShowValueIndicator. Supported values are: -
decodeSize(
dynamic value, {bool validate = true}) → Size? -
Decodes the given
value
to a Size. This expects thevalue
to have the following structure: -
decodeSliderComponentShape(
dynamic value, {bool validate = true}) → SliderComponentShape? -
Decodes the
value
to a SliderComponentShape. Supported values are: -
decodeSliderThemeData(
dynamic value, {bool validate = true}) → SliderThemeData? -
Decodes the given
value
to a SliderThemeData. This expects thevalue
to have the following structure: -
decodeSliderTickMarkShape(
dynamic value, {bool validate = true}) → SliderTickMarkShape? -
Decodes the
value
to a SliderTickMarkShape. Supported values are: -
decodeSliderTrackShape(
dynamic value, {bool validate = true}) → SliderTrackShape? -
Decodes the given
value
to a SliderTrackShape. This expects thevalue
to have an attribute named "type" that is one of the following values: -
decodeSmartDashesType(
dynamic value, {bool validate = true}) → SmartDashesType? -
Decodes a
value
to a SmartDashesType. Supported values are: -
decodeSmartQuotesType(
dynamic value, {bool validate = true}) → SmartQuotesType? -
Decodes a
value
to a SmartQuotesType. Supported values are: -
decodeSnackBarBehavior(
dynamic value, {bool validate = true}) → SnackBarBehavior? -
Decodes a
value
to a SnackBarBehavior. Supported values are: -
decodeSnackBarThemeData(
dynamic value, {bool validate = true}) → SnackBarThemeData? -
Decodes the given
value
to a SnackBarThemeData. This expects thevalue
to have the following structure: -
decodeStackFit(
dynamic value, {bool validate = true}) → StackFit? -
Decodes a
value
to a StackFit. Supported values are: -
decodeStrutStyle(
dynamic value, {bool validate = true}) → StrutStyle? -
Decodes the given
value
into a StrutStyle. If the value isnull
thennull
will be returned. Otherwise, this expects a Map like value that in JSON would look like: -
decodeSwitchThemeData(
dynamic value, {bool validate = true}) → SwitchThemeData? -
Decodes the given
value
to an SwitchThemeData. This expects the givenvalue
to follow the structure below: -
decodeSystemUiOverlayStyle(
dynamic value, {bool validate = true}) → SystemUiOverlayStyle? -
Decodes a
value
to a SystemUiOverlayStyle. Supported values are: -
decodeTabBarIndicatorSize(
dynamic value, {bool validate = true}) → TabBarIndicatorSize? -
Decodes a
value
to a TabBarIndicatorSize. Supported values are: -
decodeTabBarTheme(
dynamic value, {bool validate = true}) → TabBarTheme? -
Decodes the given
value
to a TabBarTheme. This expects thevalue
to have the following structure: -
decodeTargetPlatform(
dynamic value, {bool validate = true}) → TargetPlatform? -
Decodes a
value
to a TargetPlatform. Supported values are: -
decodeTextAlign(
dynamic value, {bool validate = true}) → TextAlign? -
Decodes the
value
to a TextAlign. Supported values are: -
decodeTextAlignVertical(
dynamic value, {bool validate = true}) → TextAlignVertical? -
Decodes the
value
to a TextAlignVertical. Supported values are: -
decodeTextBaseline(
dynamic value, {bool validate = true}) → TextBaseline? -
Decodes the
value
to a TextBaseline. Supported values are: -
decodeTextButtonThemeData(
dynamic value, {bool validate = true}) → TextButtonThemeData? -
Decodes the given
value
to an TextButtonThemeData. This expects the givenvalue
to be of the following structure: -
decodeTextCapitalization(
dynamic value, {bool validate = true}) → TextCapitalization? -
Decodes the
value
to a TextCapitalization. Supported values are: -
decodeTextDecoration(
dynamic value, {bool validate = true}) → TextDecoration? -
Decodes the
value
to a TextDecoration. Supported values are: -
decodeTextDecorationStyle(
dynamic value, {bool validate = true}) → TextDecorationStyle? -
Decodes the
value
to a TextDecorationStyle. Supported values are: -
decodeTextDirection(
dynamic value, {bool validate = true}) → TextDirection? -
Decodes the
value
to a TextDirection. Supported values are: -
decodeTextHeightBehavior(
dynamic value, {bool validate = true}) → TextHeightBehavior? -
Decodes the given
value
into a TextHeightBehavior. If the value isnull
thennull
will be returned. Otherwise, this expects a Map like value that in JSON would look like: -
decodeTextInputAction(
dynamic value, {bool validate = true}) → TextInputAction? -
Decodes the
value
to a TextInputAction. Supported values are: -
decodeTextInputType(
dynamic value, {bool validate = true}) → TextInputType? -
Decodes the
value
to a TextInputType. Supported values are: -
decodeTextOverflow(
dynamic value, {bool validate = true}) → TextOverflow? -
Decodes the
value
to a TextOverflow. Supported values are: -
decodeTextSelectionThemeData(
dynamic value, {bool validate = true}) → TextSelectionThemeData? -
Decodes the given
value
to an TextSelectionThemeData. This expects the givenvalue
to be of the following structure: -
decodeTextStyle(
dynamic value, {bool validate = true}) → TextStyle? -
Decodes a given Map-like
value
into a TextStyle. This expects the givenvalue
to have the following structure: -
decodeTextTheme(
dynamic value, {bool validate = true}) → TextTheme? -
Decodes the given
value
to a TextTheme. This expects thevalue
to have the following structure: -
decodeTextWidthBasis(
dynamic value, {bool validate = true}) → TextWidthBasis? -
Decodes the
value
to a TextWidthBasis. Supported values are: -
decodeThemeData(
dynamic value, {bool validate = true}) → ThemeData? -
Decodes the given
value
to a ThemeData. This expects thevalue
to have the following structure: -
decodeTileMode(
dynamic value, {bool validate = true}) → TileMode? -
Decodes the
value
to a TileMode. Supported values are: -
decodeTimePickerThemeData(
dynamic value, {bool validate = true}) → TimePickerThemeData? -
Decodes the given
value
to a TimePickerThemeData. This expects thevalue
to have the following structure: -
decodeToggleButtonsThemeData(
dynamic value, {bool validate = true}) → ToggleButtonsThemeData? -
Decodes the given
value
to a ToggleButtonsThemeData. This expects thevalue
to have the following structure: -
decodeToolbarOptions(
dynamic value, {bool validate = true}) → ToolbarOptions? -
Decodes the given
value
to a ToolbarOptions. This expects thevalue
to have the following structure: -
decodeTooltipThemeData(
dynamic value, {bool validate = true}) → TooltipThemeData? -
Decodes the given
value
to a TooltipThemeData. This expects thevalue
to have the following structure: -
decodeTypography(
dynamic value, {bool validate = true}) → Typography? -
Decodes the given
value
to a Typography. This expects thevalue
to have the following structure: -
decodeVerticalDirection(
dynamic value, {bool validate = true}) → VerticalDirection? -
Decodes the
value
to a VerticalDirection. Supported values are: -
decodeVisualDensity(
dynamic value, {bool validate = true}) → VisualDensity? -
Decodes the
value
to a VisualDensity. Supported values are: