INNER CODE UNIT · Dart
SettlingSheetActivity
fujidaiti/smooth_sheets · lib/src/activity.dart:328
class SettlingSheetActivity extends SheetActivity {
/// Creates a settling activity that animates the sheet position to the
/// [destination] with a constant [velocity].
SettlingSheetActivity({required this.destination, required double velocity})
: assert(velocity > 0),
_velocity = velocity,
duration = null;
/// Creates a settling activity that animates the sheet position to the
/// [destination] over the specified [duration].
SettlingSheetActivity.withDuration(
Duration this.duration, {
required this.destination,
}) : assert(duration > Duration.zero);
/// The amount of time the animation should take to reach the destination.
///
/// If `null`, the animation lasts until the destination is reached