computeChildOptions method

  1. @override
List<MathOptions> computeChildOptions(
  1. MathOptions options
)
override

Calculate the options passed to children when given options from parent

Subclasses should override this method. This method provides a general description of the context & style modification introduced by this node.

Please ensure children works in the same order as updateChildren, computeChildOptions, and buildWidget.

Implementation

@override
List<MathOptions> computeChildOptions(MathOptions options) {
  final subOptions = options.havingStyle(options.style.sub());
  final supOptions = options.havingStyle(options.style.sup());
  return [options, subOptions, supOptions, subOptions, supOptions];
}