htFetch method
dynamic
htFetch(
- String varName
)
Implementation
dynamic htFetch(String varName) {
switch (varName) {
case 'characters':
return Characters(this);
case 'toString':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
toString();
case 'compareTo':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
compareTo(positionalArgs[0]);
case 'codeUnitAt':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
codeUnitAt(positionalArgs[0]);
case 'length':
return length;
case 'endsWith':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
endsWith(positionalArgs[0]);
case 'startsWith':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
startsWith(positionalArgs[0], positionalArgs[1]);
case 'indexOf':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
indexOf(positionalArgs[0], positionalArgs[1]);
case 'lastIndexOf':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
lastIndexOf(positionalArgs[0], positionalArgs[1]);
case 'isEmpty':
return isEmpty;
case 'isNotEmpty':
return isNotEmpty;
case 'substring':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
substring(positionalArgs[0], positionalArgs[1]);
case 'trim':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
trim();
case 'trimLeft':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
trimLeft();
case 'trimRight':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
trimRight();
case 'padLeft':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
padLeft(positionalArgs[0], positionalArgs[1]);
case 'padRight':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
padRight(positionalArgs[0], positionalArgs[1]);
case 'contains':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
contains(positionalArgs[0], positionalArgs[1]);
case 'replaceFirst':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
replaceFirst(
positionalArgs[0], positionalArgs[1], positionalArgs[2]);
case 'replaceAll':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
replaceAll(positionalArgs[0], positionalArgs[1]);
case 'replaceRange':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
replaceRange(
positionalArgs[0], positionalArgs[1], positionalArgs[2]);
case 'split':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
split(positionalArgs[0]);
case 'toLowerCase':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
toLowerCase();
case 'toUpperCase':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) =>
toUpperCase();
default:
throw HTError.undefined(varName);
}
}