Chrome.parse constructor
Chrome.parse(
- String source
Retrieve Chrome instance form source
. If source
is not valid, Chrome.internal is returned.
const chrome = Chrome.parse(source)
Implementation
factory Chrome.parse(String source) {
//...
final data = PresetValue.parse<Chrome>(source);
return Chrome.fromJson(data); // load from json
}