setValue method

Future<void> setValue(
  1. dynamic value
)

Implementation

Future<void> setValue(final dynamic value) async {
  final String? string = value as String?;
  if (string == null) {
    await (await _).remove(_key);
  } else {
    await (await _).setString(_key, stringBusiness.encode(string)!);
  }
}