Const constructor audit. (#76162)

This commit is contained in:
Ian Hickson
2021-02-17 19:46:04 -08:00
committed by GitHub
parent d3c8a0bd25
commit 341984237e
20 changed files with 76 additions and 54 deletions

View File

@@ -20,7 +20,8 @@ import 'package:flutter/foundation.dart';
/// * [LogicalKeyboardKey], a class with static values that describe the keys
/// that are returned from [RawKeyEvent.logicalKey].
abstract class KeyboardKey with Diagnosticable {
/// A const constructor so that subclasses may be const.
/// Abstract const constructor. This constructor enables subclasses to provide
/// const constructors so that they can be used in const expressions.
const KeyboardKey();
}