Class SelectableText
Inheritance
System.Object
SelectableText
Syntax
public class SelectableText : StatefulWidget
Constructors
SelectableText(String, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>, FocusNode, Color)
Declaration
public SelectableText(string data, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ), FocusNode focusNode = null, Color selectionColor = null)
Parameters
Type |
Name |
Description |
System.String |
data |
|
Key |
key |
|
TextStyle |
style |
|
System.Nullable<TextAlign> |
textAlign |
|
System.Nullable<System.Boolean> |
softWrap |
|
System.Nullable<TextOverflow> |
overflow |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
FocusNode |
focusNode |
|
Color |
selectionColor |
|
SelectableText(TextSpan, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>, FocusNode, Color)
Declaration
public SelectableText(TextSpan textSpan, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ), FocusNode focusNode = null, Color selectionColor = null)
Parameters
Type |
Name |
Description |
TextSpan |
textSpan |
|
Key |
key |
|
TextStyle |
style |
|
System.Nullable<TextAlign> |
textAlign |
|
System.Nullable<System.Boolean> |
softWrap |
|
System.Nullable<TextOverflow> |
overflow |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
FocusNode |
focusNode |
|
Color |
selectionColor |
|
Fields
data
Declaration
public readonly string data
Field Value
Type |
Description |
System.String |
|
focusNode
Declaration
public readonly FocusNode focusNode
Field Value
maxLines
Declaration
public readonly int? maxLines
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
overflow
Declaration
public readonly TextOverflow? overflow
Field Value
selectionColor
Declaration
public readonly Color selectionColor
Field Value
softWrap
Declaration
public readonly bool? softWrap
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
style
Declaration
public readonly TextStyle style
Field Value
textAlign
Declaration
public readonly TextAlign? textAlign
Field Value
textScaleFactor
Declaration
public readonly float? textScaleFactor
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
textSpan
Declaration
public readonly TextSpan textSpan
Field Value
Methods
createState()
Declaration
public override State createState()
Returns
Overrides
rich(TextSpan, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>, FocusNode, Color)
Declaration
public static SelectableText rich(TextSpan textSpan, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ), FocusNode focusNode = null, Color selectionColor = null)
Parameters
Type |
Name |
Description |
TextSpan |
textSpan |
|
Key |
key |
|
TextStyle |
style |
|
System.Nullable<TextAlign> |
textAlign |
|
System.Nullable<System.Boolean> |
softWrap |
|
System.Nullable<TextOverflow> |
overflow |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
FocusNode |
focusNode |
|
Color |
selectionColor |
|
Returns