FancyElevatedButton.copy constructor

FancyElevatedButton.copy({
  1. String text = FancyStrings.copy,
  2. void onPressed()?,
})

Implementation

factory FancyElevatedButton.copy({
  String text = FancyStrings.copy,
  void Function()? onPressed,
}) {
  return FancyElevatedButton(
    text: text,
    onPressed: onPressed,
    prefix: const Icon(Icons.copy),
  );
}