getString static method

String getString(
  1. String name
)

Implementation

static String getString(String name) {
  if (textData.any((element) => element.name == name)) {
    return textData.where((element) => element.name == name).first.data;
  }
  return '';
}