age property

IntField get age

Get an IntField with age calculated.

Implementation

IntField get age {
  var result = IntField();
  result.queryBuilder = () =>
      "(strftime('%Y', 'now') - strftime('%Y', ${buildQuery()})) - (strftime('%m-%d', 'now') < strftime('%m-%d', ${buildQuery()}))";
  result.parametersBuilder = () => getParameters();
  return result;
}