getExpression function

String getExpression(
  1. String dataSource
)

在双花括号中获取表达式

Implementation

String getExpression(String dataSource) {
  var trim = dataSource?.trim();
  if (trim.length <= 4) return "";
  return trim.substring(2, trim.length - 2);
}