Decoration class Null safety

Implementers
Annotations
  • @freezed

Constructors

Decoration.box({Color? color, DecorationImage? image, ShapeBorder? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, @Default(BoxShape.rectangle) BoxShape shape})
const
factory
Decoration.fromJson(Map<String, Object?> json)
factory
Decoration.shape({Color? color, DecorationImage? image, Gradient? gradient, List<BoxShadow>? shadows, required ShapeBorder shape})
const
factory

Properties

color Color?
read-only, inherited
copyWith → $DecorationCopyWith<Decoration>
@JsonKey(ignore: true), read-only, inherited
gradient Gradient?
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
image DecorationImage?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shape Object
read-only, inherited

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