reactiveClass property

String Function()? reactiveClass
final

Extra CSS classes, appended after className.

Evaluated reactively in the browser without re-creating the DOM element.

Button(
  text: "Save",
  reactiveClass: () => isBusy.value ? "opacity-50" : "opacity-100",
)

Implementation

final String Function()? reactiveClass;