Placeholder constructor Null safety

const Placeholder(
  1. {Key? key,
  2. Color color = const Color(0xFF455A64),
  3. double strokeWidth = 2.0,
  4. double fallbackWidth = 400.0,
  5. double fallbackHeight = 400.0,
  6. Widget? child}
)

Creates a widget which draws a box.

Implementation

const Placeholder({
  super.key,
  this.color = const Color(0xFF455A64), // Blue Grey 700
  this.strokeWidth = 2.0,
  this.fallbackWidth = 400.0,
  this.fallbackHeight = 400.0,
  this.child
});