setup method

void setup({
  1. required Function onRefresh,
  2. dynamic context,
})

Implementation

void setup({required Function onRefresh, dynamic context}) {
  _onRefresh = onRefresh;
  _context = context;
}