update method
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;
});