HexagonWidget constructor

const HexagonWidget({
  1. Key? key,
  2. double width = 48,
  3. double height = 48,
  4. required Color color,
  5. Widget? child,
  6. double padding = 0,
  7. double cornerRadius = 14,
  8. double elevation = 0,
  9. bool inBounds = true,
})

Implementation

const HexagonWidget({
  Key? key,
  this.width = 48,
  this.height = 48,
  required this.color,
  this.child,
  this.padding = 0,
  this.cornerRadius = 14,
  this.elevation = 0,
  this.inBounds = true,
})  : assert(elevation >= 0),
      super(key: key);