setValue method Null safety

void setValue(
  1. Object? value,
  2. {required String key}
)

Sets a value for the given key.

Allowed value types are Iterable, Array, Blob, DateTime, Map<String, Object?>, Dictionary, null, number types, and String.

The collections must contain only the above types.

Implementation

void setValue(Object? value, {required String key});