delimiterContext static method

RenderContext delimiterContext(
  1. RenderContext context, {
  2. String delimiter = "(",
  3. double scale = 1.0,
})

Implementation

static RenderContext delimiterContext(
  RenderContext context, {
  String delimiter = "(",
  double scale = 1.0,
}) {
  final fontFamily =
      resolveDelimiterFont(context.fontFamilies, scale) ?? context.fontFamily;
  return context.copyWith(
    fontStyle: FontStyle.normal,
    fontFamily: fontFamily,
    fontWeight: FontWeight.normal,
  );
}