RadialGradient class Null safety

Implemented types

Constructors

RadialGradient({Alignment center, double radius, required List<Color> colors, List<double>? stops, TileMode tileMode, Alignment? focal, double focalRadius, GradientTransform? transform})
const
factory
RadialGradient.fromJson(Map<String, dynamic> json)
factory

Properties

center Alignment
read-only
colors List<Color>
read-only, override
copyWith → _$$RadialGradientCopyWith<_$RadialGradient>
@JsonKey(ignore: true), read-only, override
focal Alignment?
read-only
focalRadius double
read-only
hashCode int
The hash code for this object.
read-only, inherited
radius double
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stops List<double>?
read-only, override
tileMode TileMode
read-only, override
transform GradientTransform?
read-only, override

Methods

map<TResult extends Object?>({required TResult linear(LinearGradient value), required TResult radial(RadialGradient value), required TResult sweep(SweepGradient value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? linear(LinearGradient value)?, TResult? radial(RadialGradient value)?, TResult? sweep(SweepGradient value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult linear(LinearGradient value)?, TResult radial(RadialGradient value)?, TResult sweep(SweepGradient value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult linear(Alignment begin, Alignment end, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform)?, TResult radial(Alignment center, double radius, List<Color> colors, List<double>? stops, TileMode tileMode, Alignment? focal, double focalRadius, GradientTransform? transform)?, TResult sweep(Alignment center, double startAngle, double endAngle, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform)?, 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 linear(Alignment begin, Alignment end, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform), required TResult radial(Alignment center, double radius, List<Color> colors, List<double>? stops, TileMode tileMode, Alignment? focal, double focalRadius, GradientTransform? transform), required TResult sweep(Alignment center, double startAngle, double endAngle, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? linear(Alignment begin, Alignment end, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform)?, TResult? radial(Alignment center, double radius, List<Color> colors, List<double>? stops, TileMode tileMode, Alignment? focal, double focalRadius, GradientTransform? transform)?, TResult? sweep(Alignment center, double startAngle, double endAngle, List<Color> colors, List<double>? stops, TileMode tileMode, GradientTransform? transform)?}) → TResult?
@optionalTypeArgs, inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited