Prepare for making `intl` `toBeginningOfSentenceCase` non-nullable (#127488)

I intend to edit `toBeginningOfSentenceCase`'s return value to be non-nullable because it really is never null. That will mean that non-null asserts around it will become flagged as unnecessary, although right now they are necessary. So, apply a workaround - instead use a function that does a non-null assert without triggering any lints even after it becomes unnecessary.
https://dart.googlesource.com/external/github.com/flutter/flutter/+/71228e02c6e7ba9d50b7481c7517c4fb8648a25c
1 file changed
tree: f57d4cd5cda60c47ab92b1682d85c65bf3374dd1
  1. commits.json