path property
Object?
get
path
Either a relative image path or a dictionary {size -> relative image path}
pointing to icon to be set. If the icon is specified as a dictionary, the
actual image to be used is chosen depending on screen's pixel density. If
the number of image pixels that fit into one screen space unit equals
scale, then image with size scale * n will be selected, where n is the
size of the icon in the UI. At least one image must be specified. Note
that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
Implementation
Object? get path => _wrapped.path?.when(
isString: (v) => v,
isMap: (v) => v.toDartMap(),
);
set
path
(Object? v)
Implementation
set path(Object? v) {
_wrapped.path = switch (v) {
String() => v.jsify()!,
Map() => v.jsify()!,
null => null,
_ => throw UnsupportedError(
'Received type: ${v.runtimeType}. Supported types are: String, Map')
};
}