addOnActionListener<T extends Cube> method

void addOnActionListener<T extends Cube>(
  1. OnActionChanged<T, CubeAction>? listener
)

Add OnActionListener

Implementation

void addOnActionListener<T extends Cube>(
  OnActionChanged<T, CubeAction>? listener,
) {
  _onActionListeners.add(listener as OnActionChanged<Cube, CubeAction>);
}