readValue method

  1. @protected
Future<T?> readValue(
  1. String fileName
)

Implementation

@protected
// @nodoc
Future<T?> readValue(String fileName) async {
  final maybeString = await (await _container(fileName)).read();

  if (maybeString == null) {
    return null;
  }

  return (_fromJson ?? (json) => json['value'] as T)
      .call(json.decode(maybeString));
}