get<T> method

T? get<T>(
  1. String id
)

Implementation

T? get<T>(String id) {
  return fields.singleWhere((e) => e.id == id).value as T?;
}