LogError constructor

LogError(
  1. int error, {
  2. String message = '',
  3. dynamic data,
})

Creates a new LogError instance.

  • error: The error code (positive or zero for success, negative for failure).
  • message: An optional description of the error (defaults to an empty string).
  • data: Optional additional data related to the error.

Implementation

LogError(this.error, {this.message = '', this.data});