Added BuildContext parameter to TextEditingController.buildTextSpan

Summary

Context

Description of change

Migration guide

Overriding TextEditingController.buildTextSpan
Calling TextEditingController.buildTextSpan

Timeline

References

Summary

A BuildContext parameter was added to TextEditingController.buildTextSpan.

Classes that extend or implement TextEditingController
and override buildTextSpan need to add the BuildContext
parameter to the signature to make it a valid override.

Callers of TextEditingController.buildTextSpan
need to pass a BuildContext to the call.

Context

Any state that is required by buildTextSpan
(other than the TextStyle and withComposing arguments)
needed to be passed into the class that extends
TextEditingController.

Description of change