update method

void update(
  1. FlyThemeData updater(
    1. FlyThemeData current
    )
)

Update theme data using a function

Implementation

void update(FlyThemeData Function(FlyThemeData current) updater) {
  final updated = updater(_data);
  if (_data != updated) {
    _data = updated;
    notifyListeners();
  }
}