error property

  1. @Input()
String? error
getter/setter pair

An error displayed below the button.

The button also gets a red underline when this is set.

Implementation

@Input()
String? error;