selectable method
Implementation
Widget selectable({bool isSelectable = true}) {
return isSelectable
? SelectableText(
data!,
style: style,
strutStyle: strutStyle,
textDirection: textDirection,
textScaler: textScaler,
textAlign: textAlign,
maxLines: maxLines,
// TODO(m123): Fix or remove alltogether
// ignore: deprecated_member_use
toolbarOptions: const ToolbarOptions(copy: true, selectAll: true),
)
: Text(
data!,
style: style,
strutStyle: strutStyle,
textDirection: textDirection,
textScaler: textScaler,
textAlign: textAlign,
maxLines: maxLines,
);
}