coloredBox method

ColoredBox coloredBox(
  1. Color color, {
  2. Key? key,
})

用ColoredBox包裹当前组件

Implementation

ColoredBox coloredBox(Color color, {Key? key}) {
  return ColoredBox(
    color: color,
    key: key,
    child: this,
  );
}