VitButton.asset constructor
Implementation
factory VitButton.asset({
required void Function() onPressed,
required String asset,
double? size,
Color? color,
}) {
return VitButton(
onPressed: onPressed,
child: VitAssetIcon(
asset: asset,
size: size,
color: color,
),
);
}