getById method

T? getById(
  1. String x
)

Implementation

T? getById(String x) {
  return whereKey(['id'], {'id': x}).first;
}