LaunchpadLayout constructor

LaunchpadLayout({
  1. required LaunchpadController launchpad,
  2. dynamic pads,
  3. LaunchpadPad? upArrow,
  4. LaunchpadPad? downArrow,
  5. LaunchpadPad? leftArrow,
  6. LaunchpadPad? rightArrow,
  7. dynamic sceneButtons,
  8. LaunchpadPad? sessionButton,
  9. LaunchpadPad? drumsButton,
  10. LaunchpadPad? keysButton,
  11. LaunchpadPad? userButton,
  12. LaunchpadPad? stopSoloMuteButton,
})

Implementation

LaunchpadLayout({
  required this.launchpad,
  pads,
  this.upArrow,
  this.downArrow,
  this.leftArrow,
  this.rightArrow,
  sceneButtons,
  this.sessionButton,
  this.drumsButton,
  this.keysButton,
  this.userButton,
  this.stopSoloMuteButton,
  this.logo = LaunchpadColor.OFF,
}) {
  this.pads = pads ?? [];
  this.sceneButtons = sceneButtons ?? [];
  this._rxSubscription = this.launchpad.events().listen(this._handleEvent);
  this._pushState();
}