-
Couldn't load subscription status.
- Fork 227
Closed
Labels
requestRequests to resolve a particular developer problemRequests to resolve a particular developer problem
Description
dart-lang/sdk#27527 added support for generic typedefs, [which support[(https://github.com/dart-lang/sdk/blob/master/docs/language/informal/generic-function-type-alias.md) type aliases for function types, e.g.:
typedef F = List<T> Function<T>(T);A sample usage of that is to provide named callbacks in the Flutter framework:
/// Signature for callbacks that report that an underlying value has changed.
///
/// See also [ValueSetter].
typedef ValueChanged<T> = void Function(T value);The present issue tracks extending this functionality with the ability to create type aliases for non-function types, so that we can create type aliases such as:
typedef JsonMessage = Map<String, Object);
typedef ClientNoteList = Map<String, List<ClientNote>>;
natebosch, mdebbar, andyduke, cfkloss, jamesderlin and 8 more
Metadata
Metadata
Assignees
Labels
requestRequests to resolve a particular developer problemRequests to resolve a particular developer problem