error method

Widget error(
  1. BuildContext context,
  2. T? data
)

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);
}