getValueByKey abstract method

dynamic getValueByKey(
  1. E key
)

Returns the stored value for key.

Used by the debug-mode consistency check in updateByKeySafe, cross-field validation, and UI display via getFormattedValueIfNotNullOtherwiseValue.

@override
dynamic getValueByKey(LoginField key) => switch (key) {
  LoginField.email    => email,
  LoginField.password => password,
};

Implementation

dynamic getValueByKey(E key);