ArcaneSeparator.withLabel constructor

const ArcaneSeparator.withLabel({
  1. required String label,
  2. SeparatorVariant variant = SeparatorVariant.standard,
  3. String? color,
  4. bool dashed = false,
  5. double? margin,
  6. Key? key,
})

Creates a separator with a text label in the middle.

Implementation

const ArcaneSeparator.withLabel({
  required String this.label,
  this.variant = SeparatorVariant.standard,
  this.color,
  this.dashed = false,
  this.margin,
  super.key,
})  : orientation = SeparatorOrientation.horizontal,
      icon = null,
      decorative = false,
      height = null;