text method

DevbarVariable<String> text(
  1. String key, {
  2. String? description,
  3. String defaultValue = '',
})

Implementation

DevbarVariable<String> text(String key,
    {String? description, String defaultValue = ''}) {
  var variable = DevbarVariable<String>(this, key,
      defaultValue: defaultValue, description: description);

  _variables.add([..._variables.value, variable]);

  return variable;
}