firstWhereById method

ModelType? firstWhereById(
  1. String? id
)

Implementation

ModelType? firstWhereById(String? id) =>
    firstWhereOrNull((element) => element.id == id);