toChildPolicy method
Implementation
ChildPolicy toChildPolicy() {
switch (this) {
case 'TERMINATE':
return ChildPolicy.terminate;
case 'REQUEST_CANCEL':
return ChildPolicy.requestCancel;
case 'ABANDON':
return ChildPolicy.abandon;
}
throw Exception('$this is not known in enum ChildPolicy');
}