Use boolean json representation for obscureText (#9927)
Corrects type from string introduced in
21712a49a7.
This commit is contained in:
@@ -66,7 +66,7 @@ class TextInputConfiguration {
|
||||
Map<String, dynamic> toJSON() {
|
||||
return <String, dynamic>{
|
||||
'inputType': inputType.toString(),
|
||||
'obscureText': obscureText.toString(),
|
||||
'obscureText': obscureText,
|
||||
'actionLabel': actionLabel,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ void main() {
|
||||
);
|
||||
final Map<String, dynamic> json = configuration.toJSON();
|
||||
expect(json['inputType'], 'TextInputType.number');
|
||||
expect(json['obscureText'], 'true');
|
||||
expect(json['obscureText'], true);
|
||||
expect(json['actionLabel'], 'xyzzy');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user