byName static method
- String? name
Gets a possible PrintJobDialogKind instance value with name name.
Goes through PrintJobDialogKind.values looking for a value with
name name, as reported by PrintJobDialogKind.name.
Returns the first value with the given name, otherwise null.
Implementation
static PrintJobDialogKind? byName(String? name) {
if (name != null) {
try {
return PrintJobDialogKind.values.firstWhere(
(element) => element.name() == name,
);
} catch (e) {
return null;
}
}
return null;
}