TenvioMatrixItemInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
TenvioMatrixItemInput({String? id, @Default.new('') String name, String? image, @Default.new('') String code, double? weight, double? width, double? height, @Default.new([]) List<
TenvioCustomPropertyInput> customProperties}) -
factory
-
TenvioMatrixItemInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
- code ↔ String
-
codeis the code unique code of the item, can be the barcode value, or an autogenerated code.getter/setter pairinherited -
copyWith
→ $TenvioMatrixItemInputCopyWith<
TenvioMatrixItemInput> -
Create a copy of TenvioMatrixItemInput
with the given fields replaced by the non-null parameter values.
no setterinherited
-
customProperties
↔ List<
TenvioCustomPropertyInput> -
customPropertiesis aListthat contains the custom properties of the item. This properties can be used to store additional information about the item and it's up to the user to define them.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
heightis the height of the item.getter/setter pairinherited - id ↔ String?
-
idis the unique identifier for the item.getter/setter pairinherited - image ↔ String?
-
imageis the image of the item.getter/setter pairinherited - name ↔ String
-
nameis the name of the item.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weight ↔ double?
-
weightis the weight of the item.getter/setter pairinherited - width ↔ double?
-
widthis the width of the item.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_TenvioMatrixItemInput value)) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TenvioMatrixItemInput value)?) → TResult? -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TenvioMatrixItemInput value)?, {required TResult orElse()}) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)?, {required TResult orElse()}) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns 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 TenvioMatrixItemInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)?) → TResult? -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited