OLD | NEW |
1 library svg; | 1 library svg; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:html'; | 5 import 'dart:html'; |
6 import 'dart:html_common'; | 6 import 'dart:html_common'; |
7 import 'dart:nativewrappers'; | 7 import 'dart:nativewrappers'; |
8 // DO NOT EDIT | 8 // DO NOT EDIT |
9 // Auto-generated dart:svg library. | 9 // Auto-generated dart:svg library. |
10 | 10 |
(...skipping 3842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3853 | 3853 |
3854 void addAll(Iterable<Length> iterable) { | 3854 void addAll(Iterable<Length> iterable) { |
3855 throw new UnsupportedError("Cannot add to immutable List."); | 3855 throw new UnsupportedError("Cannot add to immutable List."); |
3856 } | 3856 } |
3857 | 3857 |
3858 // From List<Length>: | 3858 // From List<Length>: |
3859 void set length(int value) { | 3859 void set length(int value) { |
3860 throw new UnsupportedError("Cannot resize immutable List."); | 3860 throw new UnsupportedError("Cannot resize immutable List."); |
3861 } | 3861 } |
3862 | 3862 |
3863 // contains() defined by IDL. | 3863 // clear() defined by IDL. |
3864 | 3864 |
3865 void sort([int compare(Length a, Length b)]) { | 3865 void sort([int compare(Length a, Length b)]) { |
3866 throw new UnsupportedError("Cannot sort immutable List."); | 3866 throw new UnsupportedError("Cannot sort immutable List."); |
3867 } | 3867 } |
3868 | 3868 |
3869 int indexOf(Length element, [int start = 0]) => | 3869 int indexOf(Length element, [int start = 0]) => |
3870 Lists.indexOf(this, element, start, this.length); | 3870 Lists.indexOf(this, element, start, this.length); |
3871 | 3871 |
3872 int lastIndexOf(Length element, [int start]) { | 3872 int lastIndexOf(Length element, [int start]) { |
3873 if (start == null) start = length - 1; | 3873 if (start == null) start = length - 1; |
(...skipping 14 matching lines...) Expand all Loading... |
3888 if (length == 1) return this[0]; | 3888 if (length == 1) return this[0]; |
3889 if (length == 0) throw new StateError("No elements"); | 3889 if (length == 0) throw new StateError("No elements"); |
3890 throw new StateError("More than one element"); | 3890 throw new StateError("More than one element"); |
3891 } | 3891 } |
3892 | 3892 |
3893 Length min([int compare(Length a, Length b)]) => IterableMixinWorkaround.min(t
his, compare); | 3893 Length min([int compare(Length a, Length b)]) => IterableMixinWorkaround.min(t
his, compare); |
3894 | 3894 |
3895 Length max([int compare(Length a, Length b)]) => IterableMixinWorkaround.max(t
his, compare); | 3895 Length max([int compare(Length a, Length b)]) => IterableMixinWorkaround.max(t
his, compare); |
3896 | 3896 |
3897 Length removeAt(int pos) { | 3897 Length removeAt(int pos) { |
3898 throw new UnsupportedError("Cannot removeAt on immutable List."); | 3898 throw new UnsupportedError("Cannot remove from immutable List."); |
3899 } | 3899 } |
3900 | 3900 |
3901 Length removeLast() { | 3901 Length removeLast() { |
3902 throw new UnsupportedError("Cannot removeLast on immutable List."); | 3902 throw new UnsupportedError("Cannot remove from immutable List."); |
| 3903 } |
| 3904 |
| 3905 void remove(Object object) { |
| 3906 throw new UnsupportedError("Cannot remove from immutable List."); |
| 3907 } |
| 3908 |
| 3909 void removeAll(Iterable elements) { |
| 3910 throw new UnsupportedError("Cannot remove from immutable List."); |
| 3911 } |
| 3912 |
| 3913 void retainAll(Iterable elements) { |
| 3914 throw new UnsupportedError("Cannot remove from immutable List."); |
| 3915 } |
| 3916 |
| 3917 void removeMatching(bool test(Length element)) { |
| 3918 throw new UnsupportedError("Cannot remove from immutable List."); |
| 3919 } |
| 3920 |
| 3921 void retainMatching(bool test(Length element)) { |
| 3922 throw new UnsupportedError("Cannot remove from immutable List."); |
3903 } | 3923 } |
3904 | 3924 |
3905 void setRange(int start, int rangeLength, List<Length> from, [int startFrom])
{ | 3925 void setRange(int start, int rangeLength, List<Length> from, [int startFrom])
{ |
3906 throw new UnsupportedError("Cannot setRange on immutable List."); | 3926 throw new UnsupportedError("Cannot setRange on immutable List."); |
3907 } | 3927 } |
3908 | 3928 |
3909 void removeRange(int start, int rangeLength) { | 3929 void removeRange(int start, int rangeLength) { |
3910 throw new UnsupportedError("Cannot removeRange on immutable List."); | 3930 throw new UnsupportedError("Cannot removeRange on immutable List."); |
3911 } | 3931 } |
3912 | 3932 |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4591 | 4611 |
4592 void addAll(Iterable<Number> iterable) { | 4612 void addAll(Iterable<Number> iterable) { |
4593 throw new UnsupportedError("Cannot add to immutable List."); | 4613 throw new UnsupportedError("Cannot add to immutable List."); |
4594 } | 4614 } |
4595 | 4615 |
4596 // From List<Number>: | 4616 // From List<Number>: |
4597 void set length(int value) { | 4617 void set length(int value) { |
4598 throw new UnsupportedError("Cannot resize immutable List."); | 4618 throw new UnsupportedError("Cannot resize immutable List."); |
4599 } | 4619 } |
4600 | 4620 |
4601 // contains() defined by IDL. | 4621 // clear() defined by IDL. |
4602 | 4622 |
4603 void sort([int compare(Number a, Number b)]) { | 4623 void sort([int compare(Number a, Number b)]) { |
4604 throw new UnsupportedError("Cannot sort immutable List."); | 4624 throw new UnsupportedError("Cannot sort immutable List."); |
4605 } | 4625 } |
4606 | 4626 |
4607 int indexOf(Number element, [int start = 0]) => | 4627 int indexOf(Number element, [int start = 0]) => |
4608 Lists.indexOf(this, element, start, this.length); | 4628 Lists.indexOf(this, element, start, this.length); |
4609 | 4629 |
4610 int lastIndexOf(Number element, [int start]) { | 4630 int lastIndexOf(Number element, [int start]) { |
4611 if (start == null) start = length - 1; | 4631 if (start == null) start = length - 1; |
(...skipping 14 matching lines...) Expand all Loading... |
4626 if (length == 1) return this[0]; | 4646 if (length == 1) return this[0]; |
4627 if (length == 0) throw new StateError("No elements"); | 4647 if (length == 0) throw new StateError("No elements"); |
4628 throw new StateError("More than one element"); | 4648 throw new StateError("More than one element"); |
4629 } | 4649 } |
4630 | 4650 |
4631 Number min([int compare(Number a, Number b)]) => IterableMixinWorkaround.min(t
his, compare); | 4651 Number min([int compare(Number a, Number b)]) => IterableMixinWorkaround.min(t
his, compare); |
4632 | 4652 |
4633 Number max([int compare(Number a, Number b)]) => IterableMixinWorkaround.max(t
his, compare); | 4653 Number max([int compare(Number a, Number b)]) => IterableMixinWorkaround.max(t
his, compare); |
4634 | 4654 |
4635 Number removeAt(int pos) { | 4655 Number removeAt(int pos) { |
4636 throw new UnsupportedError("Cannot removeAt on immutable List."); | 4656 throw new UnsupportedError("Cannot remove from immutable List."); |
4637 } | 4657 } |
4638 | 4658 |
4639 Number removeLast() { | 4659 Number removeLast() { |
4640 throw new UnsupportedError("Cannot removeLast on immutable List."); | 4660 throw new UnsupportedError("Cannot remove from immutable List."); |
| 4661 } |
| 4662 |
| 4663 void remove(Object object) { |
| 4664 throw new UnsupportedError("Cannot remove from immutable List."); |
| 4665 } |
| 4666 |
| 4667 void removeAll(Iterable elements) { |
| 4668 throw new UnsupportedError("Cannot remove from immutable List."); |
| 4669 } |
| 4670 |
| 4671 void retainAll(Iterable elements) { |
| 4672 throw new UnsupportedError("Cannot remove from immutable List."); |
| 4673 } |
| 4674 |
| 4675 void removeMatching(bool test(Number element)) { |
| 4676 throw new UnsupportedError("Cannot remove from immutable List."); |
| 4677 } |
| 4678 |
| 4679 void retainMatching(bool test(Number element)) { |
| 4680 throw new UnsupportedError("Cannot remove from immutable List."); |
4641 } | 4681 } |
4642 | 4682 |
4643 void setRange(int start, int rangeLength, List<Number> from, [int startFrom])
{ | 4683 void setRange(int start, int rangeLength, List<Number> from, [int startFrom])
{ |
4644 throw new UnsupportedError("Cannot setRange on immutable List."); | 4684 throw new UnsupportedError("Cannot setRange on immutable List."); |
4645 } | 4685 } |
4646 | 4686 |
4647 void removeRange(int start, int rangeLength) { | 4687 void removeRange(int start, int rangeLength) { |
4648 throw new UnsupportedError("Cannot removeRange on immutable List."); | 4688 throw new UnsupportedError("Cannot removeRange on immutable List."); |
4649 } | 4689 } |
4650 | 4690 |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5747 | 5787 |
5748 void addAll(Iterable<PathSeg> iterable) { | 5788 void addAll(Iterable<PathSeg> iterable) { |
5749 throw new UnsupportedError("Cannot add to immutable List."); | 5789 throw new UnsupportedError("Cannot add to immutable List."); |
5750 } | 5790 } |
5751 | 5791 |
5752 // From List<PathSeg>: | 5792 // From List<PathSeg>: |
5753 void set length(int value) { | 5793 void set length(int value) { |
5754 throw new UnsupportedError("Cannot resize immutable List."); | 5794 throw new UnsupportedError("Cannot resize immutable List."); |
5755 } | 5795 } |
5756 | 5796 |
5757 // contains() defined by IDL. | 5797 // clear() defined by IDL. |
5758 | 5798 |
5759 void sort([int compare(PathSeg a, PathSeg b)]) { | 5799 void sort([int compare(PathSeg a, PathSeg b)]) { |
5760 throw new UnsupportedError("Cannot sort immutable List."); | 5800 throw new UnsupportedError("Cannot sort immutable List."); |
5761 } | 5801 } |
5762 | 5802 |
5763 int indexOf(PathSeg element, [int start = 0]) => | 5803 int indexOf(PathSeg element, [int start = 0]) => |
5764 Lists.indexOf(this, element, start, this.length); | 5804 Lists.indexOf(this, element, start, this.length); |
5765 | 5805 |
5766 int lastIndexOf(PathSeg element, [int start]) { | 5806 int lastIndexOf(PathSeg element, [int start]) { |
5767 if (start == null) start = length - 1; | 5807 if (start == null) start = length - 1; |
(...skipping 14 matching lines...) Expand all Loading... |
5782 if (length == 1) return this[0]; | 5822 if (length == 1) return this[0]; |
5783 if (length == 0) throw new StateError("No elements"); | 5823 if (length == 0) throw new StateError("No elements"); |
5784 throw new StateError("More than one element"); | 5824 throw new StateError("More than one element"); |
5785 } | 5825 } |
5786 | 5826 |
5787 PathSeg min([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.mi
n(this, compare); | 5827 PathSeg min([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.mi
n(this, compare); |
5788 | 5828 |
5789 PathSeg max([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.ma
x(this, compare); | 5829 PathSeg max([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.ma
x(this, compare); |
5790 | 5830 |
5791 PathSeg removeAt(int pos) { | 5831 PathSeg removeAt(int pos) { |
5792 throw new UnsupportedError("Cannot removeAt on immutable List."); | 5832 throw new UnsupportedError("Cannot remove from immutable List."); |
5793 } | 5833 } |
5794 | 5834 |
5795 PathSeg removeLast() { | 5835 PathSeg removeLast() { |
5796 throw new UnsupportedError("Cannot removeLast on immutable List."); | 5836 throw new UnsupportedError("Cannot remove from immutable List."); |
| 5837 } |
| 5838 |
| 5839 void remove(Object object) { |
| 5840 throw new UnsupportedError("Cannot remove from immutable List."); |
| 5841 } |
| 5842 |
| 5843 void removeAll(Iterable elements) { |
| 5844 throw new UnsupportedError("Cannot remove from immutable List."); |
| 5845 } |
| 5846 |
| 5847 void retainAll(Iterable elements) { |
| 5848 throw new UnsupportedError("Cannot remove from immutable List."); |
| 5849 } |
| 5850 |
| 5851 void removeMatching(bool test(PathSeg element)) { |
| 5852 throw new UnsupportedError("Cannot remove from immutable List."); |
| 5853 } |
| 5854 |
| 5855 void retainMatching(bool test(PathSeg element)) { |
| 5856 throw new UnsupportedError("Cannot remove from immutable List."); |
5797 } | 5857 } |
5798 | 5858 |
5799 void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom])
{ | 5859 void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom])
{ |
5800 throw new UnsupportedError("Cannot setRange on immutable List."); | 5860 throw new UnsupportedError("Cannot setRange on immutable List."); |
5801 } | 5861 } |
5802 | 5862 |
5803 void removeRange(int start, int rangeLength) { | 5863 void removeRange(int start, int rangeLength) { |
5804 throw new UnsupportedError("Cannot removeRange on immutable List."); | 5864 throw new UnsupportedError("Cannot removeRange on immutable List."); |
5805 } | 5865 } |
5806 | 5866 |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6743 | 6803 |
6744 void addAll(Iterable<String> iterable) { | 6804 void addAll(Iterable<String> iterable) { |
6745 throw new UnsupportedError("Cannot add to immutable List."); | 6805 throw new UnsupportedError("Cannot add to immutable List."); |
6746 } | 6806 } |
6747 | 6807 |
6748 // From List<String>: | 6808 // From List<String>: |
6749 void set length(int value) { | 6809 void set length(int value) { |
6750 throw new UnsupportedError("Cannot resize immutable List."); | 6810 throw new UnsupportedError("Cannot resize immutable List."); |
6751 } | 6811 } |
6752 | 6812 |
6753 // contains() defined by IDL. | 6813 // clear() defined by IDL. |
6754 | 6814 |
6755 void sort([int compare(String a, String b)]) { | 6815 void sort([int compare(String a, String b)]) { |
6756 throw new UnsupportedError("Cannot sort immutable List."); | 6816 throw new UnsupportedError("Cannot sort immutable List."); |
6757 } | 6817 } |
6758 | 6818 |
6759 int indexOf(String element, [int start = 0]) => | 6819 int indexOf(String element, [int start = 0]) => |
6760 Lists.indexOf(this, element, start, this.length); | 6820 Lists.indexOf(this, element, start, this.length); |
6761 | 6821 |
6762 int lastIndexOf(String element, [int start]) { | 6822 int lastIndexOf(String element, [int start]) { |
6763 if (start == null) start = length - 1; | 6823 if (start == null) start = length - 1; |
(...skipping 14 matching lines...) Expand all Loading... |
6778 if (length == 1) return this[0]; | 6838 if (length == 1) return this[0]; |
6779 if (length == 0) throw new StateError("No elements"); | 6839 if (length == 0) throw new StateError("No elements"); |
6780 throw new StateError("More than one element"); | 6840 throw new StateError("More than one element"); |
6781 } | 6841 } |
6782 | 6842 |
6783 String min([int compare(String a, String b)]) => IterableMixinWorkaround.min(t
his, compare); | 6843 String min([int compare(String a, String b)]) => IterableMixinWorkaround.min(t
his, compare); |
6784 | 6844 |
6785 String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(t
his, compare); | 6845 String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(t
his, compare); |
6786 | 6846 |
6787 String removeAt(int pos) { | 6847 String removeAt(int pos) { |
6788 throw new UnsupportedError("Cannot removeAt on immutable List."); | 6848 throw new UnsupportedError("Cannot remove from immutable List."); |
6789 } | 6849 } |
6790 | 6850 |
6791 String removeLast() { | 6851 String removeLast() { |
6792 throw new UnsupportedError("Cannot removeLast on immutable List."); | 6852 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6853 } |
| 6854 |
| 6855 void remove(Object object) { |
| 6856 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6857 } |
| 6858 |
| 6859 void removeAll(Iterable elements) { |
| 6860 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6861 } |
| 6862 |
| 6863 void retainAll(Iterable elements) { |
| 6864 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6865 } |
| 6866 |
| 6867 void removeMatching(bool test(String element)) { |
| 6868 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6869 } |
| 6870 |
| 6871 void retainMatching(bool test(String element)) { |
| 6872 throw new UnsupportedError("Cannot remove from immutable List."); |
6793 } | 6873 } |
6794 | 6874 |
6795 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | 6875 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ |
6796 throw new UnsupportedError("Cannot setRange on immutable List."); | 6876 throw new UnsupportedError("Cannot setRange on immutable List."); |
6797 } | 6877 } |
6798 | 6878 |
6799 void removeRange(int start, int rangeLength) { | 6879 void removeRange(int start, int rangeLength) { |
6800 throw new UnsupportedError("Cannot removeRange on immutable List."); | 6880 throw new UnsupportedError("Cannot removeRange on immutable List."); |
6801 } | 6881 } |
6802 | 6882 |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8036 | 8116 |
8037 void addAll(Iterable<Transform> iterable) { | 8117 void addAll(Iterable<Transform> iterable) { |
8038 throw new UnsupportedError("Cannot add to immutable List."); | 8118 throw new UnsupportedError("Cannot add to immutable List."); |
8039 } | 8119 } |
8040 | 8120 |
8041 // From List<Transform>: | 8121 // From List<Transform>: |
8042 void set length(int value) { | 8122 void set length(int value) { |
8043 throw new UnsupportedError("Cannot resize immutable List."); | 8123 throw new UnsupportedError("Cannot resize immutable List."); |
8044 } | 8124 } |
8045 | 8125 |
8046 // contains() defined by IDL. | 8126 // clear() defined by IDL. |
8047 | 8127 |
8048 void sort([int compare(Transform a, Transform b)]) { | 8128 void sort([int compare(Transform a, Transform b)]) { |
8049 throw new UnsupportedError("Cannot sort immutable List."); | 8129 throw new UnsupportedError("Cannot sort immutable List."); |
8050 } | 8130 } |
8051 | 8131 |
8052 int indexOf(Transform element, [int start = 0]) => | 8132 int indexOf(Transform element, [int start = 0]) => |
8053 Lists.indexOf(this, element, start, this.length); | 8133 Lists.indexOf(this, element, start, this.length); |
8054 | 8134 |
8055 int lastIndexOf(Transform element, [int start]) { | 8135 int lastIndexOf(Transform element, [int start]) { |
8056 if (start == null) start = length - 1; | 8136 if (start == null) start = length - 1; |
(...skipping 14 matching lines...) Expand all Loading... |
8071 if (length == 1) return this[0]; | 8151 if (length == 1) return this[0]; |
8072 if (length == 0) throw new StateError("No elements"); | 8152 if (length == 0) throw new StateError("No elements"); |
8073 throw new StateError("More than one element"); | 8153 throw new StateError("More than one element"); |
8074 } | 8154 } |
8075 | 8155 |
8076 Transform min([int compare(Transform a, Transform b)]) => IterableMixinWorkaro
und.min(this, compare); | 8156 Transform min([int compare(Transform a, Transform b)]) => IterableMixinWorkaro
und.min(this, compare); |
8077 | 8157 |
8078 Transform max([int compare(Transform a, Transform b)]) => IterableMixinWorkaro
und.max(this, compare); | 8158 Transform max([int compare(Transform a, Transform b)]) => IterableMixinWorkaro
und.max(this, compare); |
8079 | 8159 |
8080 Transform removeAt(int pos) { | 8160 Transform removeAt(int pos) { |
8081 throw new UnsupportedError("Cannot removeAt on immutable List."); | 8161 throw new UnsupportedError("Cannot remove from immutable List."); |
8082 } | 8162 } |
8083 | 8163 |
8084 Transform removeLast() { | 8164 Transform removeLast() { |
8085 throw new UnsupportedError("Cannot removeLast on immutable List."); | 8165 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8166 } |
| 8167 |
| 8168 void remove(Object object) { |
| 8169 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8170 } |
| 8171 |
| 8172 void removeAll(Iterable elements) { |
| 8173 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8174 } |
| 8175 |
| 8176 void retainAll(Iterable elements) { |
| 8177 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8178 } |
| 8179 |
| 8180 void removeMatching(bool test(Transform element)) { |
| 8181 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8182 } |
| 8183 |
| 8184 void retainMatching(bool test(Transform element)) { |
| 8185 throw new UnsupportedError("Cannot remove from immutable List."); |
8086 } | 8186 } |
8087 | 8187 |
8088 void setRange(int start, int rangeLength, List<Transform> from, [int startFrom
]) { | 8188 void setRange(int start, int rangeLength, List<Transform> from, [int startFrom
]) { |
8089 throw new UnsupportedError("Cannot setRange on immutable List."); | 8189 throw new UnsupportedError("Cannot setRange on immutable List."); |
8090 } | 8190 } |
8091 | 8191 |
8092 void removeRange(int start, int rangeLength) { | 8192 void removeRange(int start, int rangeLength) { |
8093 throw new UnsupportedError("Cannot removeRange on immutable List."); | 8193 throw new UnsupportedError("Cannot removeRange on immutable List."); |
8094 } | 8194 } |
8095 | 8195 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8638 if (length == 1) return this[0]; | 8738 if (length == 1) return this[0]; |
8639 if (length == 0) throw new StateError("No elements"); | 8739 if (length == 0) throw new StateError("No elements"); |
8640 throw new StateError("More than one element"); | 8740 throw new StateError("More than one element"); |
8641 } | 8741 } |
8642 | 8742 |
8643 ElementInstance min([int compare(ElementInstance a, ElementInstance b)]) => It
erableMixinWorkaround.min(this, compare); | 8743 ElementInstance min([int compare(ElementInstance a, ElementInstance b)]) => It
erableMixinWorkaround.min(this, compare); |
8644 | 8744 |
8645 ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) => It
erableMixinWorkaround.max(this, compare); | 8745 ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) => It
erableMixinWorkaround.max(this, compare); |
8646 | 8746 |
8647 ElementInstance removeAt(int pos) { | 8747 ElementInstance removeAt(int pos) { |
8648 throw new UnsupportedError("Cannot removeAt on immutable List."); | 8748 throw new UnsupportedError("Cannot remove from immutable List."); |
8649 } | 8749 } |
8650 | 8750 |
8651 ElementInstance removeLast() { | 8751 ElementInstance removeLast() { |
8652 throw new UnsupportedError("Cannot removeLast on immutable List."); | 8752 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8753 } |
| 8754 |
| 8755 void remove(Object object) { |
| 8756 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8757 } |
| 8758 |
| 8759 void removeAll(Iterable elements) { |
| 8760 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8761 } |
| 8762 |
| 8763 void retainAll(Iterable elements) { |
| 8764 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8765 } |
| 8766 |
| 8767 void removeMatching(bool test(ElementInstance element)) { |
| 8768 throw new UnsupportedError("Cannot remove from immutable List."); |
| 8769 } |
| 8770 |
| 8771 void retainMatching(bool test(ElementInstance element)) { |
| 8772 throw new UnsupportedError("Cannot remove from immutable List."); |
8653 } | 8773 } |
8654 | 8774 |
8655 void setRange(int start, int rangeLength, List<ElementInstance> from, [int sta
rtFrom]) { | 8775 void setRange(int start, int rangeLength, List<ElementInstance> from, [int sta
rtFrom]) { |
8656 throw new UnsupportedError("Cannot setRange on immutable List."); | 8776 throw new UnsupportedError("Cannot setRange on immutable List."); |
8657 } | 8777 } |
8658 | 8778 |
8659 void removeRange(int start, int rangeLength) { | 8779 void removeRange(int start, int rangeLength) { |
8660 throw new UnsupportedError("Cannot removeRange on immutable List."); | 8780 throw new UnsupportedError("Cannot removeRange on immutable List."); |
8661 } | 8781 } |
8662 | 8782 |
8663 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { | 8783 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { |
8664 throw new UnsupportedError("Cannot insertRange on immutable List."); | 8784 throw new UnsupportedError("Cannot insertRange on immutable List."); |
8665 } | 8785 } |
8666 | 8786 |
8667 List<ElementInstance> getRange(int start, int rangeLength) => | 8787 List<ElementInstance> getRange(int start, int rangeLength) => |
8668 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); | 8788 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); |
8669 | 8789 |
8670 // -- end List<ElementInstance> mixins. | 8790 // -- end List<ElementInstance> mixins. |
8671 | 8791 |
8672 @DocsEditable | 8792 @DocsEditable |
8673 @DomName('SVGElementInstanceList.item') | 8793 @DomName('SVGElementInstanceList.item') |
8674 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; | 8794 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; |
8675 | 8795 |
8676 } | 8796 } |
OLD | NEW |