cascadeStyle function
Implementation
Style cascadeStyle(dynamic input, MediaQueryData data) {
Style rst = Style();
if (input is Map<ScreenScope, Style>) {
input.forEach((key, value) {
if (key.isOfScreenScope(data)) {
rst = rst.merge(value);
}
});
} else {
assert(input is Style);
rst = input;
}
return rst;
}