withTracking method
Wraps this TextField with behavioral tracking
Example:
TextField(
key: Key('email_field'),
decoration: InputDecoration(labelText: 'Email'),
).withTracking()
Implementation
Widget withTracking({String? targetIdentifier}) {
return KalapaBehaviorTextField(
key: key,
controller: controller,
decoration: decoration,
keyboardType: keyboardType,
obscureText: obscureText,
onChanged: onChanged,
onSubmitted: onSubmitted,
focusNode: focusNode,
maxLines: maxLines,
minLines: minLines,
enabled: enabled ?? true,
style: style,
targetIdentifier: targetIdentifier,
);
}