Skip to content

Commit

Permalink
Fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Nov 13, 2024
1 parent 89eac5e commit 47f7525
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ class TestStruct extends Struct {

// This is optional:
@override
String toString() =>
'TestStruct(unit: <void>, boolean: $boolean, booleanList: $booleanList, int8: $int8, int16: $int16, int32: $int32, int64: $int64, uint8: $uint8, uint16: $uint16, uint16List: $uint16List, uint32: $uint32, uint64: $uint64, float32: $float32, float32List: $float32List, float64: $float64, text: $text, data: $data, foo: $foo, fooList: $fooList)';
String toString() {
return 'TestStruct(unit: <void>, boolean: $boolean, '
'booleanList: $booleanList, int8: $int8, int16: $int16, int32: $int32, '
'int64: $int64, uint8: $uint8, uint16: $uint16, '
'uint16List: $uint16List, uint32: $uint32, uint64: $uint64, '
'float32: $float32, float32List: $float32List, float64: $float64, '
'text: $text, data: $data, foo: $foo, fooList: $fooList)';
}
}

class Foo extends Struct {
Expand Down
10 changes: 8 additions & 2 deletions test/simple_message_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ class TestStruct extends Struct {
CompositeList<Foo> get fooList => reader.getCompositeList(6, Foo.new);

@override
String toString() =>
'TestStruct(unit: <void>, boolean: $boolean, booleanList: $booleanList, int8: $int8, int16: $int16, int32: $int32, int64: $int64, uint8: $uint8, uint16: $uint16, uint16List: $uint16List, uint32: $uint32, uint64: $uint64, float32: $float32, float32List: $float32List, float64: $float64, text: $text, data: $data, foo: $foo, fooList: $fooList';
String toString() {
return 'TestStruct(unit: <void>, boolean: $boolean, '
'booleanList: $booleanList, int8: $int8, int16: $int16, int32: $int32, '
'int64: $int64, uint8: $uint8, uint16: $uint16, '
'uint16List: $uint16List, uint32: $uint32, uint64: $uint64, '
'float32: $float32, float32List: $float32List, float64: $float64, '
'text: $text, data: $data, foo: $foo, fooList: $fooList)';
}
}

class Foo extends Struct {
Expand Down

0 comments on commit 47f7525

Please sign in to comment.