MorphOrigin.fromContext constructor
MorphOrigin.fromContext(
- dynamic context, {
- MorphOriginType type = MorphOriginType.card,
- double borderRadius = 16.0,
Convenience constructor for a card-type origin captured from a widget.
Implementation
factory MorphOrigin.fromContext(
dynamic context, {
MorphOriginType type = MorphOriginType.card,
double borderRadius = 16.0,
}) {
// Context must be a BuildContext; dynamic kept to avoid circular imports.
// Callers should use context.findRenderObject().
throw UnimplementedError('Use MorphOrigin.fromRenderBox instead.');
}