update method

void update({
  1. required Object id,
})
inherited

Updates Docker bound to this viewmodel with given id

Implementation

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