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,
  7. Widget? child,
})

Implementation

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