unregister method
Removes this object as a mock handler for SystemChannels.textInput.
After calling this method, the channel will exchange messages with the Flutter engine. Use this with FlutterDriver tests that need to display on-screen keyboard provided by the operating system.
Implementation
void unregister() {
SystemChannels.textInput.setMockMethodCallHandler(null);
_isRegistered = false;
}