updateBind method

void updateBind(
  1. Bind next,
  2. void onDirty(
    1. Type type
    )
)

Implementation

void updateBind(Bind<dynamic> next, void Function(Type type) onDirty) {
  final oldId = _bind.id;
  final oldFilter = _bind.filter;
  _bind = next as Bind<T>;
  if ((oldId != _bind.id || oldFilter != _bind.filter) && _wasStarted) {
    _subscribeToController(onDirty);
  }
}