ViewToggleContent<T> constructor

const ViewToggleContent<T>({
  1. required T active,
  2. T? inactive,
})

Implementation

const ViewToggleContent({
  required this.active,
  T? inactive,
}) : inactive = inactive ?? active;