wrapAttachmentWidget function

Widget wrapAttachmentWidget(
  1. BuildContext context,
  2. Widget attachmentWidget,
  3. ShapeBorder attachmentShape,
  4. bool reverse,
)

Wraps attachment widget with custom shape

Implementation

Widget wrapAttachmentWidget(
  BuildContext context,
  Widget attachmentWidget,
  ShapeBorder attachmentShape,
  // ignore: avoid_positional_boolean_parameters
  bool reverse,
) =>
    Material(
      clipBehavior: Clip.hardEdge,
      shape: attachmentShape,
      type: MaterialType.transparency,
      child: attachmentWidget,
    );