clear method

Future<void> clear({
  1. ClearScope scope = ClearScope.CLEAR_EVERYTHING,
  2. ClearRegion region = ClearRegion.CLEAR_SCROLLABLE,
})

Clear content/formatting based on scope and region.

Implementation

Future<void> clear({
  ClearScope scope = ClearScope.CLEAR_EVERYTHING,
  ClearRegion region = ClearRegion.CLEAR_SCROLLABLE,
}) async {
  await VolvoxGridService.Clear(ClearRequest()
    ..gridId = _gridId
    ..scope = scope
    ..region = region);
  notifyListeners();
}