update method

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

Updates Docker bound to this viewmodel with given id

Implementation

void update({required String 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();
}