asList method

RealmList<RealmValue> asList()

Casts value to a List

Implementation

RealmList<RealmValue> asList() {
  if (value is RealmList<RealmValue>) {
    return as<RealmList<RealmValue>>();
  }

  return RealmListInternal.createFromList(as<List<RealmValue>>());
}