toDelta method

  1. @override
Delta toDelta()
override

Implementation

@override
Delta toDelta() {
  // Line nodes take care of incorporating block style into their delta.
  return children
      .map((child) => child.toDelta())
      .fold(Delta(), (a, b) => a.concat(b));
}