Fix a few prefer_const_declarations and avoid_redundant_argument_values. (#92929)
This commit is contained in:
parent
ffcd32ebb6
commit
59d8aca3fc
@ -27,7 +27,7 @@ import '../widgets/editable_text_utils.dart' show OverflowWidgetTextEditingContr
|
|||||||
import '../widgets/semantics_tester.dart';
|
import '../widgets/semantics_tester.dart';
|
||||||
|
|
||||||
// On web, the context menu (aka toolbar) is provided by the browser.
|
// On web, the context menu (aka toolbar) is provided by the browser.
|
||||||
final bool isContextMenuProvidedByPlatform = isBrowser;
|
const bool isContextMenuProvidedByPlatform = isBrowser;
|
||||||
|
|
||||||
class MockTextSelectionControls extends TextSelectionControls {
|
class MockTextSelectionControls extends TextSelectionControls {
|
||||||
@override
|
@override
|
||||||
|
@ -31,10 +31,10 @@ import 'feedback_tester.dart';
|
|||||||
typedef FormatEditUpdateCallback = void Function(TextEditingValue, TextEditingValue);
|
typedef FormatEditUpdateCallback = void Function(TextEditingValue, TextEditingValue);
|
||||||
|
|
||||||
// On web, the context menu (aka toolbar) is provided by the browser.
|
// On web, the context menu (aka toolbar) is provided by the browser.
|
||||||
final bool isContextMenuProvidedByPlatform = isBrowser;
|
const bool isContextMenuProvidedByPlatform = isBrowser;
|
||||||
|
|
||||||
// On web, key events in text fields are handled by the browser.
|
// On web, key events in text fields are handled by the browser.
|
||||||
final bool areKeyEventsHandledByPlatform = isBrowser;
|
const bool areKeyEventsHandledByPlatform = isBrowser;
|
||||||
|
|
||||||
class MaterialLocalizationsDelegate extends LocalizationsDelegate<MaterialLocalizations> {
|
class MaterialLocalizationsDelegate extends LocalizationsDelegate<MaterialLocalizations> {
|
||||||
@override
|
@override
|
||||||
|
@ -36,7 +36,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Expect thrown exception with statusCode - evicts from cache and drains', () async {
|
test('Expect thrown exception with statusCode - evicts from cache and drains', () async {
|
||||||
final int errorStatusCode = HttpStatus.notFound;
|
const int errorStatusCode = HttpStatus.notFound;
|
||||||
const String requestUrl = 'foo-url';
|
const String requestUrl = 'foo-url';
|
||||||
|
|
||||||
httpClient.request.response.statusCode = errorStatusCode;
|
httpClient.request.response.statusCode = errorStatusCode;
|
||||||
|
@ -13,7 +13,7 @@ void main() {
|
|||||||
late DateTime initialDate;
|
late DateTime initialDate;
|
||||||
|
|
||||||
setUp(() {
|
setUp(() {
|
||||||
firstDate = DateTime(2001, DateTime.january);
|
firstDate = DateTime(2001);
|
||||||
lastDate = DateTime(2031, DateTime.december, 31);
|
lastDate = DateTime(2031, DateTime.december, 31);
|
||||||
initialDate = DateTime(2016, DateTime.january, 15);
|
initialDate = DateTime(2016, DateTime.january, 15);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user