firstWhereById method

ModelType? firstWhereById(
  1. int? id
)

Implementation

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