Wrapped() constructor
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrapped()
Creates a new instance of with the specified text and wrap.
Text extends string
Opening extends string
Closing extends string
text: Text
The value of a generic type variable Text
to be wrapped with a given wrap
.
wrap: Wrap<Opening, Closing>
The return value is a new instance of with the primitive value of the provided text
if set properly, otherwise with an empty string
.
A generic type variable constrained by a by default of the value captured from the provided text
parameter indicates the text type of via a new instance.
A generic type variable constrained by a by default of the value captured from the provided wrap
parameter indicates the opening type of via a new instance.
A generic type variable constrained by a by default of the value captured from the provided wrap
parameter indicates the closing type of via a new instance.
An instance of to wrap a given text
.