of static method

Implementation

static EasyRefreshData of(BuildContext context) {
  final inheritedEasyRefresh =
      context.dependOnInheritedWidgetOfExactType<_InheritedEasyRefresh>();
  assert(inheritedEasyRefresh != null,
      'Please use it in the scope of EasyRefresh!');
  return inheritedEasyRefresh!.data;
}