api / org.gradle.api.resources / TextResourceFactory / fromString

fromString

abstract fun fromString(string: String): TextResource

Creates a text resource backed by the given string.

Parameters

string - a string

Return
a text resource backed by the given string