WpMetaData class
A meta data change sent with wpUpdateUserInfo.
Only keys on the site's allow-list are accepted; any other key fails the
whole request with a MetaKeyNotAllowedException.
Constructors
- WpMetaData({String? key, dynamic value, WPMetaDataActionType action = WPMetaDataActionType.Update, bool? unique})
Properties
- action ↔ WPMetaDataActionType
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- key ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unique ↔ bool?
-
Only used with WPMetaDataActionType.Create. When
truethe value is only added if the key does not already exist.getter/setter pair - value ↔ dynamic
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited