getDefaultMarker function

Widget getDefaultMarker(
  1. bool isOrdered,
  2. int depth,
  3. Color? color,
  4. int index,
  5. double paddingTop,
  6. MarkdownConfig config,
)

get default marker for list

Implementation

Widget getDefaultMarker(bool isOrdered, int depth, Color? color, int index,
    double paddingTop, MarkdownConfig config) {
  Widget marker;
  if (isOrdered) {
    marker = Container(
        alignment: Alignment.topRight,
        padding: EdgeInsets.only(right: 1),
        child: _OlMarker(
            depth: depth, index: index, color: color, config: config.p));
  } else {
    marker = Padding(
        padding: EdgeInsets.only(top: paddingTop - 3),
        child: _UlMarker(depth: depth, color: color));
  }
  return marker;
}