setState method

dynamic setState({
  1. List<LaunchpadPad>? pads,
  2. LaunchpadPad? upArrow,
  3. LaunchpadPad? downArrow,
  4. LaunchpadPad? leftArrow,
  5. LaunchpadPad? rightArrow,
  6. LaunchpadPad? sessionButton,
  7. LaunchpadPad? drumsButton,
  8. LaunchpadPad? keysButton,
  9. LaunchpadPad? userButton,
  10. List<LaunchpadPad>? sceneButtons,
  11. LaunchpadPad? stopSoloMuteButton,
})

Implementation

setState({
  List<LaunchpadPad>? pads,
  LaunchpadPad? upArrow,
  LaunchpadPad? downArrow,
  LaunchpadPad? leftArrow,
  LaunchpadPad? rightArrow,
  LaunchpadPad? sessionButton,
  LaunchpadPad? drumsButton,
  LaunchpadPad? keysButton,
  LaunchpadPad? userButton,
  List<LaunchpadPad>? sceneButtons,
  LaunchpadPad? stopSoloMuteButton,
  LaunchpadColor? logo,
}) {
  this.pads = pads ?? this.pads;
  this.upArrow = upArrow ?? this.upArrow;
  this.downArrow = downArrow ?? this.downArrow;
  this.leftArrow = leftArrow ?? this.leftArrow;
  this.rightArrow = rightArrow ?? this.rightArrow;
  this.sessionButton = sessionButton ?? this.sessionButton;
  this.drumsButton = drumsButton ?? this.drumsButton;
  this.keysButton = keysButton ?? this.keysButton;
  this.userButton = userButton ?? this.userButton;
  this.sceneButtons = sceneButtons ?? this.sceneButtons;
  this.stopSoloMuteButton = stopSoloMuteButton ?? this.stopSoloMuteButton;
  this.logo = logo ?? this.logo;
  this._pushState();
}