CustomField class
A custom field.
Once created, no properties of a CustomField object may be changed.
- Annotations
-
- @immutable
Constructors
- CustomField({required String customField, String? label})
-
Constructs a CustomField instance.
const
- CustomField.fromJson(String json)
-
Constructs an CustomField instance from a
json
string.factory -
CustomField.fromMap(Map<
String, dynamic> map) -
Constructs an CustomField instance from a
map
.
Properties
- customField → String
-
The custom field.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String?
-
The label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? customField, String? label}) → CustomField - Creates a copy of this CustomField instance but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Creates a JSON string representing this CustomField instance.
-
toMap(
) → Map< String, dynamic> - Creates a Map<String, dynamic> representing this CustomField instance.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant CustomField other) → bool -
The equality operator.
override