ValueChangedX

Extension on ValueChanged.

API

Methods

  • debounceValueChanged Function([Duration duration])

    Prevent callback from being called too often.

    import "package:flutter/material.dart";
    import "package:fl_utilities/fl_utilities.dart";
    
    final myWidget = TextField(
      onChanged: (text) {
        debugPrint('Called after half second of not typing');
      }.debounce(),
    );