readSafe<T> method

T? readSafe<T>()

Implementation

T? readSafe<T>() {
  try {
    return read<T>();
  } catch (_) {
    return null;
  }
}