withPaint abstract method

TextLayer withPaint(
  1. ScenePaint? paint
)

This pass painted with paint instead — null included, which is "the text's own colour" and the one value copyWith cannot say, because there a null means "not given".

Implementation

TextLayer withPaint(ScenePaint? paint);