DecoratedFlagData class
A class that holds visual configuration for flags.
Implements DecoratedFlagInterface to provide consistent visual properties across flag widgets and flag themes.
- Implemented types
- Available extensions
- Annotations
Constructors
- DecoratedFlagData({double? aspectRatio, BoxDecoration? decoration, DecorationPosition? decorationPosition, EdgeInsetsGeometry? padding, double? height, double? width, Widget? flagChild})
-
Creates a new DecoratedFlagData instance.
const
Properties
- aspectRatio → double?
-
The specified aspect ratio of the flag.
final
- calculatedAspectRatio → double?
-
Available on T, provided by the DecoratedFlagInterfaceExtension extension
The calculated aspect ratio of the flag based on its width and height.no setter - child → Widget?
-
A widget to display in the foreground of the flag.
no setteroverride
- decoration → BoxDecoration?
-
The decoration of the flag.
final
- decorationPosition → DecorationPosition?
-
The position of the decoration.
final
- flagChild → Widget?
-
A widget to display in the foreground of the flag.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
The height of the flag.
final
- padding → EdgeInsetsGeometry?
-
The padding around the flag.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
The width of the flag.
final
Methods
-
copyWith(
{double? aspectRatio, BoxDecoration? decoration, DecorationPosition? decorationPosition, EdgeInsetsGeometry? padding, double? height, double? width, Widget? flagChild, bool clearDecoration = false, bool clearDecorationPosition = false, bool clearPadding = false, bool clearFlagChild = false}) → DecoratedFlagData - Creates a copy of this DecoratedFlagData with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toData(
{Widget? flagChild}) → DecoratedFlagData -
Available on T, provided by the DecoratedFlagInterfaceExtension extension
Converts this DecoratedFlagInterface to a DecoratedFlagData instance. -
toString(
) → String -
A string representation of this object.
override
-
toThemeData(
{Widget? child}) → DecoratedFlagData -
Available on T, provided by the DecoratedFlagInterfaceExtension extension
Converts this DecoratedFlagInterface to a DecoratedFlagData instance.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
DecoratedFlagData? a, DecoratedFlagData? b, double t) → DecoratedFlagData? - Linearly interpolates between two DecoratedFlagData objects.