icon property
Takes Widget as an Icon and can be used alone as IconButton.
Example
GenZButton(
onPressed: () {},
icon: const Icon(Icons.favorite),
type: GenZButtonType.TRANSPARENT,
)
Implementation
final Widget? icon;
Takes Widget as an Icon and can be used alone as IconButton.
Example
GenZButton(
onPressed: () {},
icon: const Icon(Icons.favorite),
type: GenZButtonType.TRANSPARENT,
)
final Widget? icon;