ProductFieldEditor class abstract

Helper class about product fields.

The typical use-case is the centralized "open edit page" method.

Implementers

Constructors

ProductFieldEditor()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

edit({required BuildContext context, required Product product, bool isLoggedInMandatory = true}) → Future<void>
Opens a page to edit that field for that product.
getLabel(AppLocalizations appLocalizations) → String
Returns a standard "add/edit" button label.
isPopulated(Product product) → bool
Returns true if the field is populated for that product.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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