PlaygroundValue constructor

PlaygroundValue({
  1. TextAlign textAlign = TextAlign.center,
  2. bool fillColor = false,
  3. int maxLines = 1,
  4. bool hasFocus = false,
  5. bool hasStickers = false,
  6. bool isEditing = false,
  7. PlaygroundBackground? background,
  8. GradientBackground? textBackground,
  9. bool stickerPickerView = false,
  10. bool colorPickerVisibility = false,
})

Implementation

PlaygroundValue({
  this.textAlign = TextAlign.center,
  this.fillColor = false,
  this.maxLines = 1,
  this.hasFocus = false,
  this.hasStickers = false,
  this.isEditing = false,
  PlaygroundBackground? background,
  GradientBackground? textBackground,
  this.stickerPickerView = false,
  this.colorPickerVisibility = false,
})  : background = background ??
          const GradientBackground([Color(0xFF00C6FF), Color(0xFF0078FF)]),
      textBackground = textBackground ??
          const GradientBackground([Color(0xFF00C6FF), Color(0xFF0078FF)]);