add default value
This commit is contained in:
@@ -84,6 +84,7 @@ class Bang with FastEquatable implements Insertable<Bang> {
|
||||
@JsonKey(name: 'ts')
|
||||
final Set<String>? additionalTriggers;
|
||||
|
||||
@JsonKey(defaultValue: false)
|
||||
final bool searxngApi;
|
||||
|
||||
String formatQuery(String input) {
|
||||
|
||||
@@ -170,7 +170,7 @@ Bang _$BangFromJson(Map<String, dynamic> json) => Bang(
|
||||
domain: json['d'] as String,
|
||||
trigger: json['t'] as String,
|
||||
urlTemplate: json['u'] as String,
|
||||
searxngApi: json['searxngApi'] as bool,
|
||||
searxngApi: json['searxngApi'] as bool? ?? false,
|
||||
category: json['c'] as String?,
|
||||
subCategory: json['sc'] as String?,
|
||||
format: (json['fmt'] as List<dynamic>?)
|
||||
|
||||
Reference in New Issue
Block a user