addListener method
- @override
- @Deprecated('Do not use this method directly. Use [addStrongRefListener] instead')
- 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!
}
}