使用flutter_easyrefresh组件时出现的bug
The following _CastError was thrown building:
type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘SquadModel’ in type cast
When the exception was thrown, this was the stack:
#0 _CastListBase.[] (dart:_internal/cast.dart:99:46)
#1 _SquadPageState.build. (package:app/pages/home/squad_page.dart:105:45)
#2 SliverChildBuilderDelegate.build (package:flutter/src/widgets/sliver.dart:455:22)
#3 SliverMultiBoxAdaptorElement._build (package:flutter/src/widgets/sliver.dart:1201:28)
#4 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1214:55)
…