RTTestBox.border constructor

RTTestBox.border({
  1. Color? color,
  2. Widget? child,
})

테두리를 표시하는 위젯

Color 기본값은 빨간색

Implementation

factory RTTestBox.border({
  Color? color,
  Widget? child,
}) =>
    RTTestBox(
      child: Container(
        decoration: BoxDecoration(
          border: Border.all(color: color ?? Colors.red),
        ),
        child: child,
      ),
    );