Shadow class Null safety
- Implementers
- Annotations
-
- @freezed
Constructors
- Shadow({@Default(Color(0xFF000000)) Color color, @Default(Offset.zero) Offset offset, @Default(0.0) double blurRadius})
-
constfactory
- Shadow.box({@Default(Color(0xFF000000)) Color color, @Default(Offset.zero) Offset offset, @Default(0.0) double blurRadius, @Default(0.0) double spreadRadius, @Default(BlurStyle.normal) BlurStyle blurStyle})
-
constfactory
-
Shadow.fromJson(Map<
String, Object?> json) -
factory
Properties
- blurRadius → double
-
read-only, inherited
- color → Color
-
read-only, inherited
-
copyWith
→ $ShadowCopyWith<
Shadow> -
@JsonKey(ignore: true), read-only, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- offset → Offset
-
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Shadow value), {required TResult box(BoxShadow value)}) → TResult -
@optionalTypeArgs, inherited
-
mapOrNull<
TResult extends Object?> (TResult? $default(_Shadow value)?, {TResult? box(BoxShadow value)?}) → TResult? -
@optionalTypeArgs, inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_Shadow value)?, {TResult box(BoxShadow value)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
maybeWhen<
TResult extends Object?> (TResult $default(Color color, Offset offset, double blurRadius)?, {TResult box(Color color, Offset offset, double blurRadius, double spreadRadius, BlurStyle blurStyle)?, 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?> (TResult $default(Color color, Offset offset, double blurRadius), {required TResult box(Color color, Offset offset, double blurRadius, double spreadRadius, BlurStyle blurStyle)}) → TResult -
@optionalTypeArgs, inherited
-
whenOrNull<
TResult extends Object?> (TResult? $default(Color color, Offset offset, double blurRadius)?, {TResult? box(Color color, Offset offset, double blurRadius, double spreadRadius, BlurStyle blurStyle)?}) → TResult? -
@optionalTypeArgs, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited