ProfileUpdate<T> class
A helper class to create profile updates.
Constructors
- ProfileUpdate.delete()
-
Creates a new profile update to delete data.
const
- ProfileUpdate.update(T? data)
-
Creates a new profile update to update data.
const
Properties
- data → T?
-
Returns the data associated with this update.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDelete → bool
-
Specifies, if this is an update to delete data.
no setter
- isUpdate → bool
-
Specifies, if this is an update with new data.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateOr(
[T? defaultValue]) → T? -
Returns the data value, if isUpdate, otherwise
defaultValue
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited