computedLineNumberDecorationStyle method

Style? computedLineNumberDecorationStyle(
  1. String styleKey, {
  2. String? lineStyleKey,
})

Implementation

Style? computedLineNumberDecorationStyle(
  String styleKey, {
  String? lineStyleKey,
}) {
  final style = lineDecorationStyles[styleKey];
  if (style == null) {
    return null;
  }
  final lineStyle = lineStyleKey == null
      ? null
      : lineDecorationStyles[lineStyleKey];
  var resolved = style;
  if (lineStyle != null) {
    resolved = resolved.inherit(lineStyle);
  }
  return resolved.inherit(base).inline(true);
}