wrap method

  1. @override
Widget wrap(
  1. List<Widget> children
)
override

Implementation

@override
Widget wrap(children) {
  if (isNotActive) return super.wrap(children);
  return type == InkwellType.response
      ? InkResponse(
          child: super.wrap(children),
          highlightColor: overlay,
          overlayColor: MaterialStateProperty.all<Color>(overlay),
          splashColor: splash,
          hoverColor: hover,
          focusColor: focus,
          onTap: onTap,
          onLongPress: onLongPress,
        )
      : InkWell(
          child: super.wrap(children),
          borderRadius: radii().toBorderRadius,
          splashColor: splash,
          hoverColor: hover,
          focusColor: focus,
          overlayColor: MaterialStateProperty.all<Color>(overlay),
          highlightColor: highlight,
          onTap: onTap,
          onLongPress: onLongPress,
        );
}