refactor: Omit local types
This commit is contained in:
parent
e88afdd357
commit
ef5ea57c58
7 changed files with 10 additions and 9 deletions
|
|
@ -28,8 +28,8 @@ class EventInfoDialog extends StatelessWidget {
|
|||
});
|
||||
|
||||
String get prettyJson {
|
||||
const JsonDecoder decoder = JsonDecoder();
|
||||
const JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
const decoder = JsonDecoder();
|
||||
const encoder = JsonEncoder.withIndent(' ');
|
||||
final object = decoder.convert(jsonEncode(event.toJson()));
|
||||
return encoder.convert(object);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue