sort_constructors_first (#22575)
This commit is contained in:
committed by
GitHub
parent
a68b03e9ce
commit
2ea1d81cdc
@@ -4,11 +4,11 @@
|
||||
|
||||
/// A pair of values. Used for testing custom codecs.
|
||||
class Pair {
|
||||
Pair(this.left, this.right);
|
||||
|
||||
final dynamic left;
|
||||
final dynamic right;
|
||||
|
||||
Pair(this.left, this.right);
|
||||
|
||||
@override
|
||||
String toString() => 'Pair[$left, $right]';
|
||||
}
|
||||
|
||||
@@ -25,13 +25,6 @@ const String nothing = '-';
|
||||
/// - The Flutter app records the incoming reply echo.
|
||||
/// - The platform finally replies to the original message with another echo.
|
||||
class TestStepResult {
|
||||
static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold);
|
||||
static const TestStepResult complete = TestStepResult(
|
||||
'Test complete',
|
||||
nothing,
|
||||
TestStatus.complete,
|
||||
);
|
||||
|
||||
const TestStepResult(
|
||||
this.name,
|
||||
this.description,
|
||||
@@ -71,6 +64,13 @@ class TestStepResult {
|
||||
final dynamic replyEcho;
|
||||
final dynamic error;
|
||||
|
||||
static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold);
|
||||
static const TestStepResult complete = TestStepResult(
|
||||
'Test complete',
|
||||
nothing,
|
||||
TestStatus.complete,
|
||||
);
|
||||
|
||||
Widget asWidget(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
@@ -13,13 +13,6 @@ typedef TestStep = Future<TestStepResult> Function();
|
||||
const String nothing = '-';
|
||||
|
||||
class TestStepResult {
|
||||
static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold);
|
||||
static const TestStepResult complete = TestStepResult(
|
||||
'Test complete',
|
||||
nothing,
|
||||
TestStatus.complete,
|
||||
);
|
||||
|
||||
const TestStepResult(this.name, this.description, this.status);
|
||||
|
||||
factory TestStepResult.fromSnapshot(AsyncSnapshot<TestStepResult> snapshot) {
|
||||
@@ -45,6 +38,13 @@ class TestStepResult {
|
||||
final String description;
|
||||
final TestStatus status;
|
||||
|
||||
static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold);
|
||||
static const TestStepResult complete = TestStepResult(
|
||||
'Test complete',
|
||||
nothing,
|
||||
TestStatus.complete,
|
||||
);
|
||||
|
||||
Widget asWidget(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
Reference in New Issue
Block a user