CopyButton class
A button that copies data to the clipboard.
Pass a getData callback that returns the string to copy. The button shows "π Copy" β "β Copied!" (green) or "β Failed" (red) for 2 s, then resets. Fully self-contained β no parent state needed.
Constructors
- CopyButton({required String getData(), Key? key})
-
const
Properties
Methods
-
createElement(
) β StatefulElement -
inherited
-
createState(
) β State< CopyButton> - Creates the mutable state for this component.
-
noSuchMethod(
Invocation invocation) β dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) β String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited