useBorder method

dynamic useBorder({
  1. Color? color,
  2. double? width,
  3. BorderStyle? style,
})

Implementation

useBorder({
  Color? color,
  double? width,
  BorderStyle? style,
}) {
  useParent(
    (w) => DecoratedBox(
      decoration: BoxDecoration(
        border: Border.all(
          color: color ?? Colors.transparent,
          width: width ?? 0,
          style: style ?? BorderStyle.solid,
        ),
      ),
      child: w,
    ),
  );
}