InvoiceItem class
Constructors
- InvoiceItem({String description = '', int quantity = 0, int priceCents = 0})
- InvoiceItem.fromJson(String source)
-
factory
-
InvoiceItem.fromMap(Map<
String, dynamic> map) -
factory
Properties
- description ↔ String
-
Descrição do Item
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- priceCents ↔ int
-
Preço em Centavos. Valores negativos entram como desconto no total
getter/setter pair
- quantity ↔ int
-
Quantidade
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? description, int? quantity, int? priceCents}) → InvoiceItem -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override