VitButton.asset constructor

VitButton.asset({
  1. required void onPressed(),
  2. required String asset,
  3. double? size,
  4. Color? color,
})

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,
    ),
  );
}