createState method

  1. @override
_EasyRefreshSliverRefreshControlState createState()
override

Retrieve the current state of the EasyRefreshSliverRefreshControl. The same as the state that gets passed into the builder function. Used for testing.

Implementation

/*@visibleForTesting
static RefreshMode state(BuildContext context) {
  final _EasyRefreshSliverRefreshControlState state = context
      .findAncestorStateOfType<_EasyRefreshSliverRefreshControlState>();
  return state.refreshState;
}*/

@override
_EasyRefreshSliverRefreshControlState createState() =>
    _EasyRefreshSliverRefreshControlState();