defaultChildBuilder<T extends ParseObject> static method
Implementation
static Widget defaultChildBuilder<T extends sdk.ParseObject>(
BuildContext context, sdk.ParseLiveListElementSnapshot<T> snapshot) {
Widget child;
if (snapshot.failed) {
child = const Text('something went wrong!');
} else if (snapshot.hasData) {
child = ListTile(
title: Text(
snapshot.loadedData?.get<String>(sdk.keyVarObjectId) ??
'Missing Data!',
),
);
} else {
child = const ListTile(
leading: CircularProgressIndicator(),
);
}
return child;
}