write method

  1. @protected
Future<void> write(
  1. String? value
)

Implementation

@protected
Future<void> write(String? value) async {
  if (value != null) {
    await storage.write(key: key, value: value);
  } else {
    await clear();
  }
}