ErrorText constructor

const ErrorText(
  1. String? error, {
  2. Color color = Colors.red,
  3. Key? key,
  4. bool removeException = true,
})

Implementation

const ErrorText(final String? error,
    {this.color = Colors.red, Key? key, this.removeException = true})
    : this.error = error ?? 'an Error occured',
      super(key: key);