resolve method

IrTextStyle resolve(
  1. String defaultFamily
)

Implementation

IrTextStyle resolve(String defaultFamily) {
  final size = fontSize ?? 14;
  return IrTextStyle(
    fontFamily: fontFamily ?? defaultFamily,
    fontSize: size,
    fontWeight: fontWeight ?? 400,
    italic: italic ?? false,
    color: color ?? IrColor.black,
    lineHeight: height == null ? null : _round(height! * size),
    letterSpacing: letterSpacing ?? 0,
    token: token,
  );
}