darkRectangle method Null safety

CodeInputBuilder darkRectangle(
  1. {Size totalSize = const Size(50.0, 60.0),
  2. Size emptySize = const Size(20.0, 20.0),
  3. Size filledSize = const Size(40.0, 60.0),
  4. BorderRadius borderRadius = BorderRadius.zero}
)

Builds the input inside a dark rectangle.

Implementation

static CodeInputBuilder darkRectangle({
  Size totalSize = const Size(50.0, 60.0),
  Size emptySize = const Size(20.0, 20.0),
  Size filledSize = const Size(40.0, 60.0),
  BorderRadius borderRadius = BorderRadius.zero,
}) {
  return rectangle(
      totalSize: totalSize,
      emptySize: emptySize,
      filledSize: filledSize,
      borderRadius: borderRadius,
      border: Border.all(color: Colors.black, width: 2.0),
      color: Colors.black12,
      textStyle: TextStyle(
          color: Colors.black, fontSize: 20.0, fontWeight: FontWeight.bold));
}