MPScaffold(
name: 'ListView',
backgroundColor: Color.fromARGB(255, 236, 236, 236),
body: MPRefreshIndicator(
onRefresh: (key) async {
print('start refresh');
await Future.delayed(Duration(seconds: 5));
print('end refresh');
},
enableChecker: (key) {
return key is ValueKey && key.value == 'main';
},
child: ListView(
key: Key('main'),
children: []
),
),
);