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