-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcupertino_options.dart
35 lines (33 loc) · 1.08 KB
/
cupertino_options.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class CupertinoOptions {
final String backgroundColor;
final String selectionShadowColor;
final String selectionStrokeColor;
final String selectionFillColor;
final String selectionTextColor;
final String selectionCharacter;
final String takePhotoIcon;
final bool autoCloseOnSelectionLimit;
const CupertinoOptions({
this.backgroundColor,
this.selectionFillColor,
this.selectionShadowColor,
this.selectionStrokeColor,
this.selectionTextColor,
this.selectionCharacter,
this.takePhotoIcon,
this.autoCloseOnSelectionLimit,
});
Map<String, String> toJson() {
return {
"backgroundColor": backgroundColor ?? "",
"selectionFillColor": selectionFillColor ?? "",
"selectionShadowColor": selectionShadowColor ?? "",
"selectionStrokeColor": selectionStrokeColor ?? "",
"selectionTextColor": selectionTextColor ?? "",
"selectionCharacter": selectionCharacter ?? "",
"takePhotoIcon": takePhotoIcon ?? "",
"autoCloseOnSelectionLimit":
autoCloseOnSelectionLimit == true ? "true" : "false"
};
}
}