buildDrawOrder method Null safety

  1. @override
void buildDrawOrder(
  1. List<Drawable> drawables,
  2. DrawRules? rules,
  3. List<DrawRules> allRules
)
inherited

Implementation

@override
void buildDrawOrder(
    List<Drawable> drawables, DrawRules? rules, List<DrawRules> allRules) {
  flattenedDrawRules = drawRules ?? rules;

  drawables.add(this);

  super.buildDrawOrder(drawables, rules, allRules);
}