getErrorView method
Implementation
@protected
Widget getErrorView(
AsyncSnapshot<Map<String, List<Map<String, Object?>?>?>?> snapshot,
T controller,
) {
return Center(
child: Image.asset(
'assets/images/404-error.png',
height: 100,
width: 100,
),
);
}