p-hatan/ mirror

pub repository

mirror.p-hatan.ir

dart_internal

0.1.10

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.

Download archive

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

0.1.10

  • Support the latest Dart SDK.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add dart_internal
pubspec.yaml
name: dart_internal
version: 0.1.10
repository: https://github.com/dart-lang/sdk/tree/master/pkg/dart_internal
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 <2.10.0"

Version history

VersionPublishedArchiveSHA-256
0.1.02018-02-28T23:54:49.265572ZDownloade5ec9c550197aeb681e1ba408ed45f39460beef20fd9b98fbb08d667dd0eb715
0.1.12018-03-01T00:40:35.011476ZDownloadbcf6fa983e3e7cb72fc0918bc896f2399c9fc24882606efcae160653ba66aaa0
0.1.22018-10-15T22:48:56.605588ZDownload56d3c5d81a9696a39e9b60839af9fd99d2e5e31db4f30253cd19ec1240cf415a
0.1.32019-02-26T17:47:16.285795ZDownload363be0b9c3aea52515785715a1f26499cff711d0b9e27aefa4d945ee81ec5437
0.1.42019-04-22T16:44:14.846258ZDownloadcfcb5dca22f02ad7ecc19549b99f2d68940b8ff90104bcd6e8796a7aa18ce39c
0.1.52019-06-21T15:52:39.145368ZDownload286a31ecd727975d363f308dba00fc81d8dc33a8ebbeca7e45dce9b649fb1a58
0.1.62019-08-14T01:42:31.348140ZDownload8a938ee87eca2888af0236eb0b4709033114a3ee093513b2cf989617fe3641bc
0.1.72019-09-13T23:23:53.747410ZDownloade750f6f4c83dd077e3fc8c3b8ba1fcdb0703b8c8f3e5e322511616a4ac6dfdf8
0.1.82019-12-06T00:36:47.339869ZDownload2ccfdc519b32ba6f3baaf535614202249246cf75ddbef9c3aae8a445c5536a22
0.1.92020-03-26T22:56:22.571295ZDownload254c5a432b020b97ce57590158a0860ff8111f9816e184b5aab047f9e225523d
0.1.102020-07-30T21:11:18.414123ZDownload96a361f5ae794092389130248b68c1d68624e2d0146d8ae5837b3f610edb6d37
0.1.12-nullsafety2020-09-24T16:45:11.370695ZDownload46a6a99ea54c5c02951b9a8cbbf6f82399bba626b9babfd1e7be7cbd07ceb3e7
0.1.12-nullsafety.12020-11-02T22:33:05.661756ZDownloadb5fcb5a993a437d3f35193a06f80db8d38c115a5d8dac868908f4cab2d6a75f5
0.2.02021-02-23T00:49:24.556672ZDownloaddfa8bcd1cbadedc5739f2f8ab90a03c4804bc0adf58cb5f6fe2c77492a3abba8
0.2.12021-04-20T16:28:45.194519ZDownload603339ee673d0d7738bc6fd259bfb98784327c419b9a0ec3e6c456916c446f79
0.2.22021-08-12T21:35:17.854366ZDownload91551b3f071caf6f1455cda0b8d957632b3cafdc0e6e8d26a1545f045b84f701
0.2.32021-11-12T19:50:38.118338ZDownloade6bdd12cc1b31563630ac704003908ef825700edb650f398fe187786856b7a90
0.2.42022-01-26T15:39:04.062983ZDownload2754ca2777f57a8ae3eda7a06c40b88e83b1fa3901fa635ecf411fac12cb4f99
0.2.52022-04-08T13:44:08.692771ZDownload3e6648bb66613931c9fc39538747ac967006c799489ea9fc9f9655f75350c408
0.2.62022-07-19T09:19:20.964235ZDownloadddd00c2a49dbaedda74fdb59a90c51186ed10ed627f70de4684f077f95217856
0.2.72023-04-24T21:22:48.205588ZDownloadb4710e6d55e97cd1c6e13adf68c3f18114d2b666bb8c0450b9719852915ad04d
0.2.82023-06-20T23:59:24.065730ZDownloaddae3976f383beddcfcd07ad5291a422df2c8c0a8a03c52cda63ac7b4f26e0f4e
0.2.92023-07-26T23:52:08.347278ZDownload689dccc3d5f62affd339534cca548dce12b3a6b32f0f10861569d3025efc0567
0.2.102024-02-14T21:42:43.562288ZDownload04145b91ccec450325fee75692b1ab62eb615e8892c334f0f4d31c696a857873
0.2.112024-05-02T21:54:47.677613ZDownload112a8086d38040b774b16226e490faab5de6ea640bfb0b0e207f51e624a7c8c4
0.2.122024-05-02T21:59:50.548623ZDownload17ad5e3da43df562bb98ca0d88e9f32aeb16c97ec33dee822b21c3b2d0875726
0.2.132024-07-30T17:59:56.012825ZDownload781e0d03812e5b52fdc3f71540b178245021be64d22cbc88da2aee6b45705183
0.2.142025-01-16T11:57:15.259149ZDownload93ddc8b258a4fd3487d846af38676f87159d7a2ecec0e13d691bbe6ab2c4e10a
0.2.152025-07-23T22:27:06.908440ZDownload84b9766083891392f0280f83d3018f1cf78196f4c3f9f609df07fa454edf0de5
0.2.162025-09-17T09:01:44.829225ZDownload19527d7b67dd888e66316bb631bd04e9f0b8e7e473f25fa3b53dd99d49e9433f
0.2.172025-12-08T14:31:28.974605ZDownloadf5bee9f3b7f3c3933c8630d888e370ec8ecb773e643233ea796954fc202f9799

Dependencies

No direct dependencies declared.