tryCastToList method

List<Object>? tryCastToList()

Implementation

List<Object>? tryCastToList() {
  if (this == null) {
    return null;
  }
  if (this is List) {
    return (this as List).cast<Object>();
  }
  return null;
}