Skip to content

Instantly share code, notes, and snippets.

@asissuthar
Created November 7, 2022 06:03
Show Gist options
  • Save asissuthar/aceb4c7ba9ac0d304d632ad33bf1fd77 to your computer and use it in GitHub Desktop.
Save asissuthar/aceb4c7ba9ac0d304d632ad33bf1fd77 to your computer and use it in GitHub Desktop.
// ...
fun Collection<FormField<*>>.clearError() {
forEach { formField -> formField.clearError() }
}
fun Collection<FormField<*>>.clearFocus() {
forEach { formField -> formField.clearFocus() }
}
fun Collection<FormField<*>>.disable() {
forEach { formField -> formField.disable() }
}
fun Collection<FormField<*>>.enable() {
forEach { formField -> formField.enable() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment