EB2CASA constructor

EB2CASA({
  1. required ElevatedButton from,
})

Quickly convert an ElevatedButton into a CupertinoActionSheetAction

Implementation

EB2CASA({required this.from})
    : super(
        onPressed: from.onPressed ?? () {},
        child: GestureDetector(
          onLongPress: from.onLongPress,
          child: from.child,
        ),
      );