Radius class Null safety

Implementers
Annotations
  • @freezed

Constructors

Radius.circular(double radius)
const
factory
Radius.elliptical(double x, double y)
const
factory
Radius.fromJson(Map<String, Object?> json)
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult circular(RadiusCircular value), required TResult elliptical(RadiusElliptical value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? circular(RadiusCircular value)?, TResult? elliptical(RadiusElliptical value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult circular(RadiusCircular value)?, TResult elliptical(RadiusElliptical value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult circular(double radius)?, TResult elliptical(double x, double y)?, 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 circular(double radius), required TResult elliptical(double x, double y)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? circular(double radius)?, TResult? elliptical(double x, double y)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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

Constants

zero → const Radius
Radius.circular(0.0)