VirtualKey constructor

VirtualKey({
  1. String? label,
  2. KeyType type = KeyType.character,
  3. Icon? icon,
  4. Alignment iconAlignment = Alignment.topCenter,
  5. ContainerDecoration? decoration,
  6. TextStyle? textStyle,
})

Implementation

VirtualKey({
  this.label,
  this.type = KeyType.character,
  this.icon,
  this.iconAlignment = Alignment.topCenter,
  this.decoration,
  this.textStyle,
}) : assert(
        (type != KeyType.character || label != null),
        'Character keys must have a label',
      );