get<T> static method

ValueNotifier<T>? get<T>(
  1. dynamic target
)

获取已有的 ValueNotifier

Implementation

static ValueNotifier<T>? get<T>(dynamic target) {
  final notifier = _notifiers[target];
  if (notifier == null) return null;
  return notifier as ValueNotifier<T>;
}