ProfileUpdate<T> class Null safety

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.
read-onlyinherited
isDelete bool
Specifies, if this is an update to delete data.
read-only
isUpdate bool
Specifies, if this is an update with new data.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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