release method Null safety

  1. @Deprecated('Use dispose instead. ' 'This feature was deprecated after v3.3.0-0.0.pre.')
void release()
Deprecated('Use dispose instead. ' 'This feature was deprecated after v3.3.0-0.0.pre.')">@Deprecated('Use dispose instead. ' 'This feature was deprecated after v3.3.0-0.0.pre.')

Trigger the listeners to indicate that the widget no longer needs to be kept alive.

This method does not call dispose. When the handle is not needed anymore, it must be disposed regardless of whether notifying listeners.

Implementation

@Deprecated(
  'Use dispose instead. '
  'This feature was deprecated after v3.3.0-0.0.pre.',
)
void release() {
  notifyListeners();
}