ErrorModel constructor

const ErrorModel({
  1. required String source,
  2. required String message,
})

Creates a new instance of ErrorModel.

  • source: Identifies where the error originated.
  • message: Provides details about the error.

Implementation

const ErrorModel({
  required this.source,
  required this.message,
});