Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add MarkdownOnSelectionChangedCallback
  • Loading branch information
leiatfly committed Feb 21, 2024
commit a54e8df89e33a6727ae5bbfcf8c7e4ded759e41b
5 changes: 5 additions & 0 deletions packages/flutter_markdown/lib/src/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import 'package:markdown/markdown.dart' as md;

import '../flutter_markdown.dart';
import '_functions_io.dart' if (dart.library.html) '_functions_web.dart';
/// TBD
///
/// TBD
typedef MarkdownOnSelectionChangedCallback = void Function(
String text, TextSelection selection, SelectionChangedCause? cause);

/// Signature for callbacks used by [MarkdownWidget] when the user taps a link.
/// The callback will return the link text, destination, and title from the
Expand Down