Skip to content

Commit

Permalink
Dart: add const keyword to BLOB default value
Browse files Browse the repository at this point in the history
Signed-off-by: Patryk Wrobel <[email protected]>
  • Loading branch information
pwrobeldev committed Nov 22, 2024
1 parent 4d0dbaf commit 6ed9286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Explicit `field constructor` definitions
}}{{#instanceOf type "LimeList"}}const {{/instanceOf}}{{!!
}}{{#instanceOf type "LimeMap"}}const {{/instanceOf}}{{!!
}}{{#instanceOf type "LimeSet"}}const {{/instanceOf}}{{!!
}}{{#instanceOf type "LimeBasicType"}}{{#isEq type.name "Blob"}}const {{/isEq}}{{/instanceOf}}{{!!
}}{{/set}}{{!!
}}{{/notInstanceOf}}{{/constPrefix}}{{!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class TypesWithDefaults_ImmutableStructWithBlob {

const TypesWithDefaults_ImmutableStructWithBlob(this.emptyBlob, this.deadBeef);
const TypesWithDefaults_ImmutableStructWithBlob.withDefaults()
: emptyBlob = Uint8List.fromList([]), deadBeef = Uint8List.fromList([222, 173, 190, 239]);
: emptyBlob = const Uint8List.fromList([]), deadBeef = const Uint8List.fromList([222, 173, 190, 239]);
}


Expand Down Expand Up @@ -752,7 +752,7 @@ class TypesWithDefaults_ImmutableStructWithFieldConstructorAndBlob {

const TypesWithDefaults_ImmutableStructWithFieldConstructorAndBlob(this.emptyBlob, this.deadBeef, this.someField, this.anotherField);
const TypesWithDefaults_ImmutableStructWithFieldConstructorAndBlob.withIntegers(this.someField, this.anotherField)
: emptyBlob = Uint8List.fromList([]), deadBeef = Uint8List.fromList([222, 173, 190, 239]);
: emptyBlob = const Uint8List.fromList([]), deadBeef = const Uint8List.fromList([222, 173, 190, 239]);
}


Expand Down

0 comments on commit 6ed9286

Please sign in to comment.