BlocxTestFormEntity class

A lightweight, immutable form entity for testing form blocs.

Inheritance

Constructors

BlocxTestFormEntity({String id = '1', String field1 = '', String field2 = ''})
const

Properties

field1 → String
final
field2 → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
identifier → String
A globally unique and constant identifier for the entity.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? field1, String? field2}) → BlocxTestFormEntity
getFormattedValueByKey(BlocxTestFormField key) → dynamic
Returns a formatted display value for key.
inherited
getFormattedValueIfNotNullOtherwiseValue(BlocxTestFormField key) → dynamic
Returns getFormattedValueByKey if non-null, otherwise getValueByKey.
inherited
getValueByKey(BlocxTestFormField key) → dynamic
Returns the stored value for key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateByKey(BlocxTestFormField key, dynamic value) → BlocxTestFormEntity
Updates the field identified by key and returns a new instance.
override
updateByKeySafe(BlocxTestFormField key, dynamic value) → BlocxTestFormEntity
Calls updateByKey and validates the result in debug mode.
inherited

Operators

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