addListener method

  1. @override
  2. @Deprecated('Do not use this method directly. Use [addStrongRefListener] instead')
void addListener(
  1. VoidCallback listener
)
override

❌ Do not use this method directly. Use addStrongRefListener instead.

Implementation

@override
@Deprecated(
  'Do not use this method directly. Use [addStrongRefListener] instead',
)
void addListener(VoidCallback listener) {
  if (!_isDisposed) {
    super.addListener(listener);
  } else {
    // todo: Log warning!
  }
}