Migrated some services and widgets doc comments to null safety. (#72792)
This commit is contained in:
@@ -58,7 +58,7 @@ abstract class KeyboardKey with Diagnosticable {
|
||||
/// // The node used to request the keyboard focus.
|
||||
/// final FocusNode _focusNode = FocusNode();
|
||||
/// // The message to display.
|
||||
/// String _message;
|
||||
/// String? _message;
|
||||
///
|
||||
/// // Focus nodes need to be disposed.
|
||||
/// @override
|
||||
@@ -75,7 +75,7 @@ abstract class KeyboardKey with Diagnosticable {
|
||||
/// _message = 'Pressed the "Q" key!';
|
||||
/// } else {
|
||||
/// if (kReleaseMode) {
|
||||
/// _message = 'Not a Q: Key label is "${event.logicalKey.keyLabel ?? '<none>'}"';
|
||||
/// _message = 'Not a Q: Key label is "${event.logicalKey.keyLabel}"';
|
||||
/// } else {
|
||||
/// // This will only print useful information in debug mode.
|
||||
/// _message = 'Not a Q: Pressed ${event.logicalKey.debugName}';
|
||||
@@ -91,13 +91,13 @@ abstract class KeyboardKey with Diagnosticable {
|
||||
/// color: Colors.white,
|
||||
/// alignment: Alignment.center,
|
||||
/// child: DefaultTextStyle(
|
||||
/// style: textTheme.headline4,
|
||||
/// style: textTheme.headline4!,
|
||||
/// child: RawKeyboardListener(
|
||||
/// focusNode: _focusNode,
|
||||
/// onKey: _handleKeyEvent,
|
||||
/// child: AnimatedBuilder(
|
||||
/// animation: _focusNode,
|
||||
/// builder: (BuildContext context, Widget child) {
|
||||
/// builder: (BuildContext context, Widget? child) {
|
||||
/// if (!_focusNode.hasFocus) {
|
||||
/// return GestureDetector(
|
||||
/// onTap: () {
|
||||
@@ -346,7 +346,7 @@ class LogicalKeyboardKey extends KeyboardKey {
|
||||
/// // The node used to request the keyboard focus.
|
||||
/// final FocusNode _focusNode = FocusNode();
|
||||
/// // The message to display.
|
||||
/// String _message;
|
||||
/// String? _message;
|
||||
///
|
||||
/// // Focus nodes need to be disposed.
|
||||
/// @override
|
||||
@@ -374,13 +374,13 @@ class LogicalKeyboardKey extends KeyboardKey {
|
||||
/// color: Colors.white,
|
||||
/// alignment: Alignment.center,
|
||||
/// child: DefaultTextStyle(
|
||||
/// style: textTheme.headline4,
|
||||
/// style: textTheme.headline4!,
|
||||
/// child: RawKeyboardListener(
|
||||
/// focusNode: _focusNode,
|
||||
/// onKey: _handleKeyEvent,
|
||||
/// child: AnimatedBuilder(
|
||||
/// animation: _focusNode,
|
||||
/// builder: (BuildContext context, Widget child) {
|
||||
/// builder: (BuildContext context, Widget? child) {
|
||||
/// if (!_focusNode.hasFocus) {
|
||||
/// return GestureDetector(
|
||||
/// onTap: () {
|
||||
|
||||
Reference in New Issue
Block a user