describeValue method Null safety

  1. @override
String describeValue(
  1. KeyDataTransitMode value
)
override

Returns the string that will be used to both add to the test description, and be printed when a test fails for this variation.

Implementation

@override
String describeValue(KeyDataTransitMode value) {
  switch (value) {
    case KeyDataTransitMode.rawKeyData:
      return 'RawKeyEvent';
    case KeyDataTransitMode.keyDataThenRawKeyData:
      return 'ui.KeyData then RawKeyEvent';
  }
}