selected property

bool? selected
final

Estado inicial del botón (opcional, control externo).

  • true: inicia mostrando widgetA y usando backgroundColorA/rippleColorA.
  • false o null: inicia en no seleccionado, mostrando widgetB.

Si no se provee, el botón gestiona su propio estado interno.

Implementation

final bool? selected;