createState method
Retrieve the current state of the EasyRefreshSliverLoadControl. The same as the state that gets passed into the builder function. Used for testing.
Implementation
/*@visibleForTesting
static LoadMode state(BuildContext context) {
final _EasyRefreshSliverLoadControlState state =
context.findAncestorStateOfType<_EasyRefreshSliverLoadControlState>();
return state.loadState;
}*/
@override
_EasyRefreshSliverLoadControlState createState() =>
_EasyRefreshSliverLoadControlState();