mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-20 16:55:17 +00:00
Fix a few notices
This commit is contained in:
@ -14,7 +14,7 @@ bool _defaultCheck(String s) => s.isNotEmpty;
|
||||
class TextEditSettingsTile extends SettingsTile {
|
||||
final String title;
|
||||
final String currValue;
|
||||
final void Function(String) onChanged;
|
||||
final void Function(String)? onChanged;
|
||||
final bool Function(String) checkInput;
|
||||
final bool allowEmptyValues;
|
||||
final int maxLines;
|
||||
@ -31,11 +31,7 @@ class TextEditSettingsTile extends SettingsTile {
|
||||
this.allowEmptyValues = false,
|
||||
this.maxLength,
|
||||
this.maxLines = 1,
|
||||
}) : assert(title != null),
|
||||
assert(currValue != null),
|
||||
assert(checkInput != null),
|
||||
assert(allowEmptyValues != null),
|
||||
assert(maxLines != null);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -64,6 +60,6 @@ class TextEditSettingsTile extends SettingsTile {
|
||||
|
||||
if (value == null) return;
|
||||
|
||||
onChanged(value);
|
||||
onChanged!(value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user