TerminalNativeStyle.fromStyle constructor
TerminalNativeStyle.fromStyle(
- UvStyle style
Builds a snapshot from a UV style.
Implementation
factory TerminalNativeStyle.fromStyle(UvStyle style) {
return TerminalNativeStyle(
fg: TerminalNativeColor.fromUv(style.fg),
bg: TerminalNativeColor.fromUv(style.bg),
underlineColor: TerminalNativeColor.fromUv(style.underlineColor),
underline: style.underline,
attrs: style.attrs,
packedKey: style.packedKey,
);
}