updateAfter method

void updateAfter({
  1. required String id,
  2. required VoidCallback after,
})
inherited

Updates Docker bound to this viewmodel with given id after callback is executed

Implementation

void updateAfter({required String id, required VoidCallback after}) {
  assert(_dockerUpdaters?.containsKey(id) ?? false, "You called update() method on Docker doesn't exist or disposed");
  after.call();
  final updater = _dockerUpdaters!.entries.where((element) => element.key == id).toList()[0].value;
  updater.call();
}