DiagramTextRegionLayout constructor

const DiagramTextRegionLayout({
  1. required String slotId,
  2. required DiagramRect bounds,
  3. DiagramTextDefinition? text,
  4. bool overflow = false,
  5. bool wrapText = true,
  6. DiagramTextVerticalAlignment verticalAlignment = DiagramTextVerticalAlignment.center,
  7. DiagramColor foreground = const DiagramColor(0xFF111111),
  8. double defaultFontSize = diagramDefaultFontSize,
})

Implementation

const DiagramTextRegionLayout({
  required this.slotId,
  required this.bounds,
  this.text,
  this.overflow = false,
  this.wrapText = true,
  this.verticalAlignment = DiagramTextVerticalAlignment.center,
  this.foreground = const DiagramColor(0xFF111111),
  this.defaultFontSize = diagramDefaultFontSize,
});