update method

  1. @override
Future<void> update(
  1. Map<String, Object?> template
)
override

Replaces the screen whose id matches template in place.

Implementation

@override
Future<void> update(Map<String, Object?> template) => _call('update', () {
      final index = screens.indexWhere((s) => s['id'] == template['id']);
      if (index != -1) screens[index] = template;
    });