StickyNote constructor Null safety

const StickyNote(
  1. {Key? key,
  2. required Widget child,
  3. required Color color,
  4. required double width,
  5. required double height}
)

Creates a StickyNote containing the child widget with a background color, withing a container of fixed width and height.

Implementation

const StickyNote({
  Key? key,
  required this.child,
  required this.color,
  required this.width,
  required this.height,
}) : super(key: key);