Wrapped() constructor
Wrapped()
Wrapped()
Creates a new instance of Wrapped
with the specified text and wrap.
Text extends string
Opening extends string
Closing extends string
Parameters
text: Text
The value of a generic type variable Text
to be wrapped with a given wrap
.
wrap: Wrap<Opening, Closing>
Returns
The return value is a new instance of Wrapped
with the primitive value of the provided text
if set properly, otherwise with an empty string
.
Example usage
Last updated
Was this helpful?