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
-
- @immutable
- @JsonThemeCodec('decode')
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
-
decodeActionIconThemeData(
dynamic value, {bool validate = false}) → ActionIconThemeData? -
Decodes the given
value
to an ActionIconThemeData. This expects the following JSON structure: -
decodeAlignment(
dynamic value, {bool validate = true}) → Alignment? -
Decodes the given
value
to an Alignment. If the given value is aMap
then this expects the following JSON structure: -
decodeAlignmentDirectional(
dynamic value, {bool validate = true}) → AlignmentDirectional? -
Decodes the given
value
to an AlignmentDirectional. The supported values are: -
decodeAlignmentGeometry(
dynamic value, {bool validate = true}) → AlignmentGeometry? -
Decodes the given
value
to an AlignmentGeometry. The supported values are: -
decodeAndroidOverscrollIndicator(
dynamic value, {bool validate = true}) → AndroidOverscrollIndicator? -
Decodes the given
value
to an AndroidOverscrollIndicator. 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: -
decodeBadgeThemeData(
dynamic value, {bool validate = true}) → BadgeThemeData? -
Decodes the given
value
to an BadgeThemeData. This expects the givenvalue
to follow the structure below: -
decodeBlendMode(
dynamic value, {bool validate = true}) → BlendMode? -
Decodes the given
value
to an BlendMode. Supported values are: -
decodeBlurStyle(
dynamic value, {bool validate = true}) → BlurStyle? -
Decodes the given
value
to an BlurStyle. 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. -
decodeBorderRadiusGeometry(
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
value
to a BottomNavigationBarLandscapeLayout. Supported values are: -
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: -
decodeBoxHeightStyle(
dynamic value, {bool validate = false}) → BoxHeightStyle? -
Decodes the
value
to a BoxHeightStyle. 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: -
decodeBoxWidthStyle(
dynamic value, {bool validate = false}) → BoxWidthStyle? -
Decodes the
value
to a BoxWidthStyle. 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. -
decodeColorFilter(
dynamic value, {bool validate = true}) → ColorFilter? - Decodes a dynamic value into a ColorFilter. The schema this requires depends on the type.
-
decodeColorScheme(
dynamic value, {bool validate = true}) → ColorScheme? -
Decodes the given
value
to an ColorScheme. 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: -
decodeDatePickerThemeData(
dynamic value, {bool validate = true}) → DatePickerThemeData? -
Decodes the given
value
to an DatePickerThemeData. 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: -
decodeDrawerThemeData(
dynamic value, {bool validate = true}) → DrawerThemeData? -
Decodes the given
value
to an DrawerThemeData. This expects the givenvalue
to be of the following structure: -
decodeDropdownMenuThemeData(
dynamic value, {bool validate = true}) → DropdownMenuThemeData? -
Decodes the given
value
to an DropdownMenuThemeData. This expects the givenvalue
to be of the following structure: -
decodeEdgeInsets(
dynamic value, {bool validate = true}) → EdgeInsets? -
Decodes the
value
into an EdgeInsetsGeometry. -
decodeEdgeInsetsDirectional(
dynamic value, {bool ltr = true, bool validate = true}) → EdgeInsetsDirectional? -
Decodes the
value
into an EdgeInsetsGeometry. -
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: -
decodeExpansionTileThemeData(
dynamic value, {bool validate = true}) → ExpansionTileThemeData? -
Decodes the given
value
to an ExpansionTileThemeData. This expects the givenvalue
to be of the following structure: -
decodeFilledButtonThemeData(
dynamic value, {bool validate = true}) → FilledButtonThemeData? -
Decodes the given
value
to an FilledButtonThemeData. 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: -
decodeFloatingLabelAlignment(
dynamic value, {bool validate = true}) → FloatingLabelAlignment? -
Decodes the
value
to a FloatingLabelAlignment. Supported values are: -
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: -
decodeFontVariation(
dynamic value, {bool validate = true}) → FontVariation? -
Decodes the given
value
into a FontVariation. If the value isnull
thennull
will be returned. -
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: -
decodeIcon(
dynamic value, {bool validate = true}) → Icon? -
Decodes the given
value
into an IconData. If the value isnull
thennull
will be returned. -
decodeIconButtonThemeData(
dynamic value, {bool validate = true}) → IconButtonThemeData? -
Decodes the given
value
to an IconButtonThemeData. This expects the givenvalue
to follow the structure below: -
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: -
decodeListTileStyle(
dynamic value, {bool validate = true}) → ListTileStyle? -
Decodes the
value
to an ListTileStyle. Supported values are: -
decodeListTileThemeData(
dynamic value, {bool validate = true}) → ListTileThemeData? -
Decodes the given
value
to an Locale. This expects the givenvalue
to be of the following structure: -
decodeListTileTitleAlignment(
dynamic value, {bool validate = false}) → ListTileTitleAlignment? -
Decodes the
value
to an ListTileTitleAlignment. 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: -
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: -
decodeMenuBarThemeData(
dynamic value, {bool validate = true}) → MenuBarThemeData? -
Decodes the given
value
to an MenuBarThemeData. This expects the givenvalue
to be of the following structure: -
decodeMenuButtonThemeData(
dynamic value, {bool validate = true}) → MenuButtonThemeData? -
Decodes the given
value
to an MenuButtonThemeData. This expects the givenvalue
to be of the following structure: -
decodeMenuStyle(
dynamic value, {bool validate = true}) → MenuStyle? -
Decodes the given
value
to an MenuStyle. This expects the givenvalue
to be of the following structure: -
decodeMenuThemeData(
dynamic value, {bool validate = true}) → MenuThemeData? -
Decodes the given
value
to an MenuThemeData. This expects the givenvalue
to be of the following structure: -
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 given
value
to an NavigationBarThemeData. This expects the givenvalue
to be of the following structure: -
Decodes the
value
to a NavigationDestinationLabelBehavior. Supported values are: -
Decodes the given
value
to an NavigationDrawerThemeData. This expects the givenvalue
to be of the following structure: -
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 = true}) → 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: -
decodeOverflowBoxFit(
dynamic value, {bool validate = true}) → OverflowBoxFit? -
Decodes the
value
to a OverflowBoxFit. 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: -
decodePanAxis(
dynamic value, {bool validate = true}) → PanAxis? -
Decodes the
value
to a PanAxis. Supported values are: -
decodePointerDeviceKind(
dynamic value, {bool validate = true}) → PointerDeviceKind? -
Decodes the
value
to a PointerDeviceKind. Supported values are: -
decodePopupMenuPosition(
dynamic value, {bool validate = true}) → PopupMenuPosition? -
Decodes the
value
to a PopupMenuPosition. Supported values are: -
decodePopupMenuThemeData(
dynamic value, {bool validate = true}) → PopupMenuThemeData? -
Decodes the given
value
to a PopupMenuThemeData. This expects the givenvalue
to be of the following structure: -
decodeProgressIndicatorThemeData(
dynamic value, {bool validate = true}) → ProgressIndicatorThemeData? -
Decodes the given
value
to an ProgressIndicatorThemeData. This expects the givenvalue
to follow the structure below: -
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: -
decodeScrollbarOrientation(
dynamic value, {bool validate = true}) → ScrollbarOrientation? -
Decodes the
value
to a ScrollbarOrientation. Supported values are: -
decodeScrollbarThemeData(
dynamic value, {bool validate = true}) → ScrollbarThemeData? -
Decodes the given
value
to an ScrollbarThemeData. This expects the givenvalue
to follow the structure below: -
decodeScrollBehavior(
dynamic value, {bool validate = true}) → ScrollBehavior? -
Decodes the given
value
to an ScrollBehavior. 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: -
decodeSearchBarThemeData(
dynamic value, {bool validate = true}) → SearchBarThemeData? -
Decodes the given
value
to an SearchBarThemeData. This expects the givenvalue
to follow the structure below: -
decodeSearchViewThemeData(
dynamic value, {bool validate = true}) → SearchViewThemeData? -
Decodes the given
value
to an SearchViewThemeData. This expects the givenvalue
to follow the structure below: -
decodeSegmentedButtonThemeData(
dynamic value, {dynamic validate = true}) → SegmentedButtonThemeData? -
Decodes the given
value
to an SegmentedButtonThemeData. This expects the givenvalue
to follow the structure below: -
decodeSemanticsTag(
dynamic value, {bool validate = true}) → 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: -
decodeSliderInteraction(
dynamic value, {bool validate = false}) → SliderInteraction? -
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: -
decodeTabAlignment(
dynamic value, {bool validate = true}) → TabAlignment? -
Decodes a
value
to a TabAlignment. 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: -
decodeTableBorder(
dynamic value, {bool validate = true}) → TableBorder? -
Decodes the given
value
to a TableBorder. This expects thevalue
to have the following structure: -
decodeTableColumnWidth(
dynamic value, {bool validate = true}) → TableColumnWidth? -
Decodes the given
value
to a TableColumnWidth. 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: -
decodeTextLeadingDistribution(
dynamic value, {bool validate = true}) → TextLeadingDistribution? -
Decodes the
value
to a TextLeadingDistribution. 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: -
decodeTextSpan(
dynamic value, {bool validate = true}) → TextSpan? -
Decodes a given Map-like
value
into a TextStyle. This expects the givenvalue
to have 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 one of the following structures: -
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: -
decodeTooltipThemeData(
dynamic value, {bool validate = true}) → TooltipThemeData? -
Decodes the given
value
to a TooltipThemeData. This expects thevalue
to have the following structure: -
decodeTooltipTriggerMode(
dynamic value, {bool validate = true}) → TooltipTriggerMode? -
Decodes the
value
to a TooltipTriggerMode. Supported values are: -
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: -
decodeWidgetStateColor(
dynamic value, {bool validate = true}) → WidgetStateColor? -
Decodes a
value
into a WidgetStateColor. If the value is a String then the value will be used for all states. -
decodeWidgetStatePropertyBool(
dynamic value, {bool validate = true}) → WidgetStateProperty< bool?> ? -
Decodes a
value
into a double based WidgetStateProperty. This accepts a double or a String which will be resolved for all states. -
decodeWidgetStatePropertyBorderSide(
dynamic value, {bool validate = true}) → WidgetStateProperty< BorderSide?> ? -
Decodes a
value
into a BorderSide based WidgetStateProperty. This accepts a BorderSide or a String which will be resolved for all states. -
decodeWidgetStatePropertyColor(
dynamic value, {bool validate = true}) → WidgetStateProperty< Color?> ? -
Decodes a
value
into a Color based WidgetStateProperty. This accepts a Color or a String which will be resolved for all states. -
decodeWidgetStatePropertyDouble(
dynamic value, {bool validate = true}) → WidgetStateProperty< double?> ? -
Decodes a
value
into a double based WidgetStateProperty. This accepts a double or a String which will be resolved for all states. -
decodeWidgetStatePropertyEdgeInsetsGeometry(
dynamic value, {bool validate = true}) → WidgetStateProperty< EdgeInsetsGeometry?> ? -
Decodes a
value
into a EdgeInsetsGeometry based WidgetStateProperty. -
decodeWidgetStatePropertyIcon(
dynamic value, {bool validate = true}) → WidgetStateProperty< Icon?> ? -
Decodes a
value
into a Icon based WidgetStateProperty. This accepts a Icon or a String which will be resolved for all states. -
decodeWidgetStatePropertyIconThemeData(
dynamic value, {bool validate = true}) → WidgetStateProperty< IconThemeData?> ? -
Decodes a
value
into a IconThemeData based WidgetStateProperty. This accepts a IconThemeData or a String which will be resolved for all states. -
decodeWidgetStatePropertyMouseCursor(
dynamic value, {bool validate = true}) → WidgetStateProperty< MouseCursor?> ? -
Decodes a
value
into a MouseCursor based WidgetStateProperty. This accepts a MouseCursor or a String which will be resolved for all states. -
decodeWidgetStatePropertyOutlinedBorder(
dynamic value, {bool validate = true}) → WidgetStateProperty< OutlinedBorder?> ? -
Decodes a
value
into a OutlinedBorder based WidgetStateProperty. This accepts a OutlinedBorder or a String which will be resolved for all states. -
decodeWidgetStatePropertySize(
dynamic value, {bool validate = true}) → WidgetStateProperty< Size?> ? -
Decodes a
value
into a Size based WidgetStateProperty. This accepts a Size or a String which will be resolved for all states. -
decodeWidgetStatePropertyTextStyle(
dynamic value, {bool validate = true}) → WidgetStateProperty< TextStyle?> ? -
Decodes a
value
into a TextStyle based WidgetStateProperty. This accepts a TextStyle or a String which will be resolved for all states. -
decodeWrapAlignment(
dynamic value, {bool validate = true}) → WrapAlignment? -
Decodes the
value
to a WrapAlignment. Supported values are: -
decodeWrapCrossAlignment(
dynamic value, {bool validate = true}) → WrapCrossAlignment? -
Decodes the
value
to a WrapCrossAlignment. Supported values are: