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
code is 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>
customProperties is a List that 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?
height is the height of the item.
getter/setter pairinherited
id String?
id is the unique identifier for the item.
getter/setter pairinherited
image String?
image is the image of the item.
getter/setter pairinherited
name String
name is the name of the item.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight double?
weight is the weight of the item.
getter/setter pairinherited
width double?
width is 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_TenvioMatrixItemInput value)?) → TResult?

Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_TenvioMatrixItemInput value)?, {required TResult orElse()}) → TResult

Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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