toHubbleTextStyle method

HubbleTextStyle toHubbleTextStyle()

Implementation

HubbleTextStyle toHubbleTextStyle() {
  return HubbleTextStyle(
    base: nakedStyle(),
    color: color?.toHubbleColor(),
    backgroundColor: backgroundColor?.toHubbleColor(),
    shadow: shadow.map((e) => e.toHubbleTextShadow()).toList(),
    decorationColor: decorationColor?.toHubbleColor(),
    foregroundGradient: hasForegroundGradient()
        ? foregroundGradient!.toHubbleGradient()
        : null,
    backgroundGradient: hasBackgroundGradient()
        ? backgroundGradient!.toHubbleGradient()
        : null,
  );
}