getProperty method

Expression getProperty(
  1. String name, {
  2. bool cascade = false,
  3. bool ifNullReturnNull = false,
})

Implementation

Expression getProperty(
  String name, {
  bool cascade = false,
  bool ifNullReturnNull = false,
}) =>
    Expression([
      this,
      if (ifNullReturnNull) Code('?'),
      Code('.'),
      if (cascade) Code('.'),
      IdentifierStartingWithLowerCase(name),
    ]);