SplitViewController constructor

SplitViewController({
  1. List<double?>? weights,
  2. List<WeightLimit?>? limits,
})

Creates a SplitViewController

The weights specifies the ratio in the view. The sum of the weights cannot exceed 1.

Implementation

factory SplitViewController(
    {List<double?>? weights, List<WeightLimit?>? limits}) {
  if (weights == null) {
    weights = List.empty(growable: true);
  }
  if (limits == null) {
    limits = List.empty(growable: true);
  }
  return SplitViewController._(weights, limits);
}