stub top-level constant

String const stub

Get file's Raw Contents

Implementation

const String stub = """
import 'package:flutter/material.dart';

mixin TwAlignmentMixin<T> {
  late T _child;

  Alignment? twAlignment;

  void setChildForAlignment(T child) {
    _child = child;
  }

  T alignment(Alignment val) {
    twAlignment = val;
    return _child;
  }

  T get topCenter => _alignChild(alignment: Alignment.topCenter);
  T get topLeft => _alignChild(alignment: Alignment.topLeft);
  T get topRight => _alignChild(alignment: Alignment.topRight);
  T get center => _alignChild(alignment: Alignment.center);
  T get centerLeft => _alignChild(alignment: Alignment.centerLeft);
  T get centerRight => _alignChild(alignment: Alignment.centerRight);
  T get bottomCenter => _alignChild(alignment: Alignment.bottomCenter);
  T get bottomLeft => _alignChild(alignment: Alignment.bottomLeft);
  T get bottomRight => _alignChild(alignment: Alignment.bottomRight);

  T _alignChild({required Alignment alignment}) {
    twAlignment = alignment;
    return _child;
  }
}
""";