ShapeDecoration class Null safety
- Implemented types
Constructors
-
ShapeDecoration({Color? color, DecorationImage? image, Gradient? gradient, List<
BoxShadow> ? shadows, required ShapeBorder shape}) -
constfactory
-
ShapeDecoration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- color → Color?
-
read-only, override
-
copyWith
→ _$$ShapeDecorationCopyWith<
_$ShapeDecoration> -
@JsonKey(ignore: true), read-only, override
- gradient → Gradient?
-
read-only, override
- hashCode → int
-
The hash code for this object.
read-only, inherited
- image → DecorationImage?
-
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
shadows
→ List<
BoxShadow> ? -
read-only
- shape → ShapeBorder
-
read-only, override
Methods
-
map<
TResult extends Object?> ({required TResult box(BoxDecoration value), required TResult shape(ShapeDecoration value)}) → TResult -
@optionalTypeArgs, inherited
-
mapOrNull<
TResult extends Object?> ({TResult? box(BoxDecoration value)?, TResult? shape(ShapeDecoration value)?}) → TResult? -
@optionalTypeArgs, inherited
-
maybeMap<
TResult extends Object?> ({TResult box(BoxDecoration value)?, TResult shape(ShapeDecoration value)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
maybeWhen<
TResult extends Object?> ({TResult box(Color? color, DecorationImage? image, ShapeBorder? border, BorderRadius? borderRadius, List< BoxShadow> ? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape)?, TResult shape(Color? color, DecorationImage? image, Gradient? gradient, List<BoxShadow> ? shadows, ShapeBorder shape)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult box(Color? color, DecorationImage? image, ShapeBorder? border, BorderRadius? borderRadius, List< BoxShadow> ? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape), required TResult shape(Color? color, DecorationImage? image, Gradient? gradient, List<BoxShadow> ? shadows, ShapeBorder shape)}) → TResult -
@optionalTypeArgs, inherited
-
whenOrNull<
TResult extends Object?> ({TResult? box(Color? color, DecorationImage? image, ShapeBorder? border, BorderRadius? borderRadius, List< BoxShadow> ? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape)?, TResult? shape(Color? color, DecorationImage? image, Gradient? gradient, List<BoxShadow> ? shadows, ShapeBorder shape)?}) → TResult? -
@optionalTypeArgs, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited