pub repository
mirror.p-hatan.irdart_internal
0.1.7This package is not intended for wide use. It provides a temporary API to solve the problem: "Given an object some generic type A, how do I construct an instance of generic type B with the same type argument(s)?" This is necessary in a few rare places in order to migrate existing code to Dart 2's stronger type system. Eventually, the hope is to have direct language support for solving this problem but we don't have time to get that into 2.0, so this package is provided as a temporary workaround. We will very likely remove support for this in a later version of Dart.
Readme
☠☠ Warning: This package is experimental and may be removed in a future version of Dart. ☠☠
This package is not intended for wide use. It provides a temporary API to solve the problem: "Given an object some generic type A, how do I construct an instance of generic type B with the same type argument(s)?"
This is necessary in a few rare places in order to migrate existing code to Dart 2's stronger type system. Eventually, the hope is to have direct language support for solving this problem but we don't have time to get that into 2.0, so this package is provided as a temporary workaround.
We will very likely remove support for this in a later version of Dart. Please avoid using this if you can. If you feel you do need to use it, please reach out to @munificent or @leafpetersen and let us know.
Changelog
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add dart_internalpubspec.yaml
name: dart_internal
version: 0.1.7
author: "Dart Team <misc@dartlang.org>"
homepage: http://www.dartlang.org
description: >
This package is not intended for wide use. It provides a temporary API to
solve the problem: "Given an object some generic type A, how do I construct an
instance of generic type B with the same type argument(s)?"
This is necessary in a few rare places in order to migrate existing code to
Dart 2's stronger type system. Eventually, the hope is to have direct
language support for solving this problem but we don't have time to get that
into 2.0, so this package is provided as a temporary workaround.
We will very likely remove support for this in a later version of Dart.
environment:
# Restrict the upper bound so that we can remove support for this in a later
# version of the SDK without it being a breaking change.
sdk: ">=2.0.0-dev.12.0 <2.7.0"
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | 2018-02-28T23:54:49.265572Z | Download | e5ec9c550197aeb681e1ba408ed45f39460beef20fd9b98fbb08d667dd0eb715 |
| 0.1.1 | 2018-03-01T00:40:35.011476Z | Download | bcf6fa983e3e7cb72fc0918bc896f2399c9fc24882606efcae160653ba66aaa0 |
| 0.1.2 | 2018-10-15T22:48:56.605588Z | Download | 56d3c5d81a9696a39e9b60839af9fd99d2e5e31db4f30253cd19ec1240cf415a |
| 0.1.3 | 2019-02-26T17:47:16.285795Z | Download | 363be0b9c3aea52515785715a1f26499cff711d0b9e27aefa4d945ee81ec5437 |
| 0.1.4 | 2019-04-22T16:44:14.846258Z | Download | cfcb5dca22f02ad7ecc19549b99f2d68940b8ff90104bcd6e8796a7aa18ce39c |
| 0.1.5 | 2019-06-21T15:52:39.145368Z | Download | 286a31ecd727975d363f308dba00fc81d8dc33a8ebbeca7e45dce9b649fb1a58 |
| 0.1.6 | 2019-08-14T01:42:31.348140Z | Download | 8a938ee87eca2888af0236eb0b4709033114a3ee093513b2cf989617fe3641bc |
| 0.1.7 | 2019-09-13T23:23:53.747410Z | Download | e750f6f4c83dd077e3fc8c3b8ba1fcdb0703b8c8f3e5e322511616a4ac6dfdf8 |
| 0.1.8 | 2019-12-06T00:36:47.339869Z | Download | 2ccfdc519b32ba6f3baaf535614202249246cf75ddbef9c3aae8a445c5536a22 |
| 0.1.9 | 2020-03-26T22:56:22.571295Z | Download | 254c5a432b020b97ce57590158a0860ff8111f9816e184b5aab047f9e225523d |
| 0.1.10 | 2020-07-30T21:11:18.414123Z | Download | 96a361f5ae794092389130248b68c1d68624e2d0146d8ae5837b3f610edb6d37 |
| 0.1.12-nullsafety | 2020-09-24T16:45:11.370695Z | Download | 46a6a99ea54c5c02951b9a8cbbf6f82399bba626b9babfd1e7be7cbd07ceb3e7 |
| 0.1.12-nullsafety.1 | 2020-11-02T22:33:05.661756Z | Download | b5fcb5a993a437d3f35193a06f80db8d38c115a5d8dac868908f4cab2d6a75f5 |
| 0.2.0 | 2021-02-23T00:49:24.556672Z | Download | dfa8bcd1cbadedc5739f2f8ab90a03c4804bc0adf58cb5f6fe2c77492a3abba8 |
| 0.2.1 | 2021-04-20T16:28:45.194519Z | Download | 603339ee673d0d7738bc6fd259bfb98784327c419b9a0ec3e6c456916c446f79 |
| 0.2.2 | 2021-08-12T21:35:17.854366Z | Download | 91551b3f071caf6f1455cda0b8d957632b3cafdc0e6e8d26a1545f045b84f701 |
| 0.2.3 | 2021-11-12T19:50:38.118338Z | Download | e6bdd12cc1b31563630ac704003908ef825700edb650f398fe187786856b7a90 |
| 0.2.4 | 2022-01-26T15:39:04.062983Z | Download | 2754ca2777f57a8ae3eda7a06c40b88e83b1fa3901fa635ecf411fac12cb4f99 |
| 0.2.5 | 2022-04-08T13:44:08.692771Z | Download | 3e6648bb66613931c9fc39538747ac967006c799489ea9fc9f9655f75350c408 |
| 0.2.6 | 2022-07-19T09:19:20.964235Z | Download | ddd00c2a49dbaedda74fdb59a90c51186ed10ed627f70de4684f077f95217856 |
| 0.2.7 | 2023-04-24T21:22:48.205588Z | Download | b4710e6d55e97cd1c6e13adf68c3f18114d2b666bb8c0450b9719852915ad04d |
| 0.2.8 | 2023-06-20T23:59:24.065730Z | Download | dae3976f383beddcfcd07ad5291a422df2c8c0a8a03c52cda63ac7b4f26e0f4e |
| 0.2.9 | 2023-07-26T23:52:08.347278Z | Download | 689dccc3d5f62affd339534cca548dce12b3a6b32f0f10861569d3025efc0567 |
| 0.2.10 | 2024-02-14T21:42:43.562288Z | Download | 04145b91ccec450325fee75692b1ab62eb615e8892c334f0f4d31c696a857873 |
| 0.2.11 | 2024-05-02T21:54:47.677613Z | Download | 112a8086d38040b774b16226e490faab5de6ea640bfb0b0e207f51e624a7c8c4 |
| 0.2.12 | 2024-05-02T21:59:50.548623Z | Download | 17ad5e3da43df562bb98ca0d88e9f32aeb16c97ec33dee822b21c3b2d0875726 |
| 0.2.13 | 2024-07-30T17:59:56.012825Z | Download | 781e0d03812e5b52fdc3f71540b178245021be64d22cbc88da2aee6b45705183 |
| 0.2.14 | 2025-01-16T11:57:15.259149Z | Download | 93ddc8b258a4fd3487d846af38676f87159d7a2ecec0e13d691bbe6ab2c4e10a |
| 0.2.15 | 2025-07-23T22:27:06.908440Z | Download | 84b9766083891392f0280f83d3018f1cf78196f4c3f9f609df07fa454edf0de5 |
| 0.2.16 | 2025-09-17T09:01:44.829225Z | Download | 19527d7b67dd888e66316bb631bd04e9f0b8e7e473f25fa3b53dd99d49e9433f |
| 0.2.17 | 2025-12-08T14:31:28.974605Z | Download | f5bee9f3b7f3c3933c8630d888e370ec8ecb773e643233ea796954fc202f9799 |
Dependencies
No direct dependencies declared.