LaunchpadLayout constructor

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

Implementation

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