Cross constructor

Cross({
  1. required Mobject mobject,
  2. Color color = RED_C,
})

Implementation

Cross({required Mobject mobject, Color color = RED_C})
    : super([
        Line(start: UL, end: DR),
        Line(start: UR, end: DL),
      ]) {
  replace(mobject, stretch: true);
  setStroke(color: color, width: 6);
}