KbdProps constructor

const KbdProps({
  1. String? keyText,
  2. List<String>? keys,
  3. String separator = '+',
  4. KbdStyle style = KbdStyle.raised,
  5. ComponentSize size = ComponentSize.md,
})

Implementation

const KbdProps({
  this.keyText,
  this.keys,
  this.separator = '+',
  this.style = KbdStyle.raised,
  this.size = ComponentSize.md,
}) : assert(keyText != null || keys != null,
          'Either keyText or keys must be provided');