fireChangeText

void fireChangeText(

  1. String text
)

Fire onChangeText handler with value

Implementation

void fireChangeText(String text) {
  final onChangeText = props['onChangeText'];
  switch (onChangeText) {
    case final void Function(String) fn:
      fn(text);
    case final JSFunction fn:
      fn.callAsFunction(null, text.toJS);
    case null:
      throw TestingException('No onChangeText handler on $type');
  }
}