ItemNotFoundException constructor

ItemNotFoundException({
  1. Object? value,
  2. String? message,
  3. Map<String, dynamic>? details,
})

Constructor to initialize the exception with a specific message.

Implementation

ItemNotFoundException(
    {this.value, String? message, Map<String, dynamic>? details})
    : super(message ?? "No matching item found for the given value.",
          details: {"value": value});