setOnlineTotal method

dynamic setOnlineTotal(
  1. BuildContext context
)

this is used to remove all no-cloud icons from every datapoint aka set every forceOffline of WithOffline Datas

Implementation

setOnlineTotal(BuildContext context) async {
  final model = Provider.of<LocationModel>(context, listen: false);
  final locations = await model.all().last;
  for (final loc in locations) {
    final caller = CategoryModel(loc);
    await setOnlineAll(
      caller,
      3,
      name: caller.title,
      parentID: await API().rootID,
    );
  }
}