toPlatform method
Implementation
Platform toPlatform() {
switch (this) {
case 'Windows':
return Platform.windows;
case 'Linux':
return Platform.linux;
}
throw Exception('$this is not known in enum Platform');
}
Platform toPlatform() {
switch (this) {
case 'Windows':
return Platform.windows;
case 'Linux':
return Platform.linux;
}
throw Exception('$this is not known in enum Platform');
}