layoutStatelessTemplate top-level constant

String const layoutStatelessTemplate

layoutStatelessTemplate

will be used when create a new layout and its test file

Implementation

const String layoutStatelessTemplate =
    """import 'package:projectName/core.dart';\n
class className extends StatelessWidget {
  /// `child`: optional widget
  final Widget? child;

  /// ### `className`
  ///
  /// `Description`:
  ///
  /// `Example`:
  // TODO: Implement the className
  const className({Key? key, this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AdaptivePlatformWidget(child: child ?? Container());
  }
}
""";