restoreContext method Null safety

  1. @override
void restoreContext(
  1. covariant _RichTextContext context
)
override

Apply the context for next layout

Implementation

@override
void restoreContext(_RichTextContext context) {
  _context.spanStart = context.spanEnd;
  _context.startOffset = -context.endOffset;
}