Inch class abstract

Inheritance

Constructors

Inch(double value, {int graduations})
const
factory
Inch.fromJson(Map<String, dynamic> json)
factory

Properties

cm Centimeter
no setterinherited
copyWith → _$$InchCopyWith<_$Inch>
no setter
graduations int
no setter
hashCode int
The hash code for this object.
no setterinherited
inch Inch
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
no setter

Methods

map<TResult extends Object?>({required TResult cm(Centimeter value), required TResult inch(Inch value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? cm(Centimeter value)?, TResult? inch(Inch value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult cm(Centimeter value)?, TResult inch(Inch value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult cm(double value)?, TResult inch(double value, int graduations)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 cm(double value), required TResult inch(double value, int graduations)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? cm(double value)?, TResult? inch(double value, int graduations)?}) → TResult?
inherited

Operators

operator /(double value) DistanceUnit
inherited
operator ==(Object other) bool
The equality operator.
inherited