screenControllerTemplate top-level constant

String const screenControllerTemplate

screenControllerLayout

Implementation

const String screenControllerTemplate =
    """import 'package:projectName/core.dart';\nimport 'package:flutter/foundation.dart';\n
class classNameController extends ChangeNotifier with DiagnosticableTreeMixin implements ReassembleHandler{

  bool isDisposed = false;

  bool get mounted => !isDisposed;

  /// ### `classNameController`
  ///
  /// `Description`:
  ///
  /// `Example`:
  // TODO: Implement controller
  classNameController(){

  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    /// list all the properties of your class here.
    /// See the documentation of debugFillProperties for more information.
    /// TODO: implement add
    properties.add(StringProperty('classNameController', null));
  }

  @override
  void reassemble() {
     /// TODO: reassemble
    print('Did hot-reload classNameController');
  }

  @override
  void notifyListeners() {
    if (!isDisposed) {
      super.notifyListeners();
    }
  }

  @override
  void dispose() {
    /// TODO: dispose
    isDisposed = true;
    super.dispose();
  }
}""";