isNullable property

bool isNullable

returns true if this type identifier contains the nullable flag

Implementation

bool get isNullable => isDynamic || typeName.endsWith('?');