Class ChangeNotifier
Inheritance
System.Object
ChangeNotifier
Namespace: Unity.UIWidgets.foundation
Syntax
public class ChangeNotifier : Listenable
Properties
hasListeners
Declaration
protected bool hasListeners { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
addListener(VoidCallback)
Declaration
public void addListener(VoidCallback listener)
Parameters
| Type | Name | Description |
|---|---|---|
| VoidCallback | listener |
Implements
dispose()
Declaration
public virtual void dispose()
notifyListeners()
Declaration
protected virtual void notifyListeners()
removeListener(VoidCallback)
Declaration
public void removeListener(VoidCallback listener)
Parameters
| Type | Name | Description |
|---|---|---|
| VoidCallback | listener |