loadData method Null safety

Future loadData()

Implementation

Future loadData() async {
  try {
    final _list = await apiLoadData(isFirst: true);
    if (_list is List) {
      list = _list;
    }
  } catch (e, stack) {
    debugPrint('$e $stack');
    Utils.showToast(e.toString());
  }
  isFirst = false;
}