DartNgFormsException constructor

DartNgFormsException(
  1. String message, [
  2. StackTrace? stackTrace
])

Creates a DartNgFormsException with a message describing the issue.

Optionally, you can provide a stackTrace.

Example:

throw DartNgFormsException('Field "name" cannot be empty');

Implementation

DartNgFormsException(this.message, [this.stackTrace]);