MorphOrigin.fromContext constructor

MorphOrigin.fromContext(
  1. dynamic context, {
  2. MorphOriginType type = MorphOriginType.card,
  3. 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.');
}