as2OrNull property
X2?
get
as2OrNull
Return the value if it has type X2, otherwise null.
Implementation
X2? get as2OrNull => value is X2 ? value as X2 : null;
Return the value if it has type X2, otherwise null.
X2? get as2OrNull => value is X2 ? value as X2 : null;