ComponentState.center constructor

ComponentState.center({
  1. required Widget child,
  2. String? markdown,
  3. String? codeSample,
  4. required String stateName,
})

Implementation

factory ComponentState.center({
  required Widget child,
  String? markdown,
  String? codeSample,
  required String stateName,
}) =>
    ComponentState(
      builder: (_, __) => Center(child: child),
      markdown: markdown,
      stateName: stateName,
      codeSample: codeSample,
    );