context

TextStyle

style

required

bool

withComposing

})

final

Color

color

Theme

of

context

accentColor

return

super

buildTextSpan

context:

context

style:

TextStyle

color:

color

),

withComposing:

withComposing

);

Migration guide

Overriding TextEditingController.buildTextSpan

Add a required BuildContext context parameter to the
signature of the buildTextSpan override.

Code before migration:

class