getElementError method

Widget getElementError(
  1. BuildContext context,
  2. dynamic error
)

Implementation

Widget getElementError(BuildContext context, dynamic error) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      IconButton(
        icon: Icon(Icons.refresh, color: Colors.red),
        onPressed: load,
      )
    ],
  );
}