error method
This function is called when the LxState of the data is error.
As it's optional, if it's not needed/overrided the default function (initial) is called.
Implementation
Widget error(BuildContext context, T? data) {
return initial(context, data);
}