BoxDecoration class Null safety

Implemented types

Constructors

BoxDecoration({Color? color, DecorationImage? image, ShapeBorder? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape})
const
factory
BoxDecoration.fromJson(Map<String, dynamic> json)
factory

Properties

backgroundBlendMode BlendMode?
read-only
border ShapeBorder?
read-only
borderRadius BorderRadius?
read-only
boxShadow List<BoxShadow>?
read-only
color Color?
read-only, override
copyWith → _$$BoxDecorationCopyWith<_$BoxDecoration>
@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
shape BoxShape
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