mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-09-04 03:16:42 +00:00
removed const
This commit is contained in:
parent
50021285a9
commit
f782904406
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ class PickerListTile<T> extends StatelessWidget {
|
||||||
title: title,
|
title: title,
|
||||||
selectedValue: Optional(selectedValue),
|
selectedValue: Optional(selectedValue),
|
||||||
values: [
|
values: [
|
||||||
const Optional(null),
|
/// `const Optional(null)` for some reason is not equal to a non-const `Optional(null)`
|
||||||
|
// ignore: prefer_const_constructors
|
||||||
|
Optional(null),
|
||||||
...values.toSet().map((e) => Optional(e)),
|
...values.toSet().map((e) => Optional(e)),
|
||||||
],
|
],
|
||||||
titleAdapter: (context, value) => _titleAdapter(context, value.value),
|
titleAdapter: (context, value) => _titleAdapter(context, value.value),
|
||||||
|
|
Loading…
Reference in a new issue