MathBlockInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
MathBlockInput({MathType? type, @Default.new([]) List<
num> numbers, dynamic initialValue, ExceptionType? exceptionType, dynamic exceptionValue}) -
factory
-
MathBlockInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $MathBlockInputCopyWith<
MathBlockInput> -
Create a copy of MathBlockInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- exceptionType ↔ ExceptionType?
-
getter/setter pairinherited
- exceptionValue ↔ dynamic
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue ↔ dynamic
-
getter/setter pairinherited
-
numbers
↔ List<
num> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ MathType?
-
getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_MathBlockInput value)) → TResult -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_MathBlockInput value)?) → TResult? -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_MathBlockInput value)?, {required TResult orElse()}) → TResult -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(MathType? type, List< num> numbers, dynamic initialValue, ExceptionType? exceptionType, dynamic exceptionValue)?, {required TResult orElse()}) → TResult -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this MathBlockInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(MathType? type, List< num> numbers, dynamic initialValue, ExceptionType? exceptionType, dynamic exceptionValue)) → TResult -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(MathType? type, List< num> numbers, dynamic initialValue, ExceptionType? exceptionType, dynamic exceptionValue)?) → TResult? -
Available on MathBlockInput, provided by the MathBlockInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited