Line data Source code
1 : import 'package:flutter/foundation.dart'; 2 : 3 : class Value<T> extends ValueNotifier<T> { 4 2 : Value(T value) : super(value); 5 : 6 : Map<String, dynamic> changes = <String, dynamic>{}; 7 : 8 1 : void update(String key, int op, dynamic value) { 9 3 : if (hasListeners) changes = {key: value}; 10 1 : notifyListeners(); 11 : } 12 : }