This file contains hidden or 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:collection/collection.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
typedef SelectionTransform = String Function(Iterable<String>); | |
/// Original version: https://github.com/flutter/flutter/issues/104548#issuecomment-1683714851 | |
/// Next version: https://gist.github.com/Schwusch/edf778492423db42a0ad11efd5bc8727 | |
/// This version: https://gist.github.com/bryantwilliam/62a2b4cbd390a0e62612b3ea85c7f5e9 | |
/// A widget that transforms the text selection when copied. |