This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
/// {@template text_controller_builder} | |
/// Exposes a controller (of type [C]) to the child. | |
/// Used to convert any TextField into a declarative version. | |
/// | |
/// | |
/// ```dart | |
/// TextControllerBuilder<MyTextEditingController>( | |
/// create: () => MyTextEditingController()..doSomethingSpecialOnCreate(), |