declareUIID method

String declareUIID(
  1. AFCommandContext ctx,
  2. String screenName,
  3. AFUIControlSettings control
)

Implementation

String declareUIID(AFCommandContext ctx, String screenName, AFUIControlSettings control) {
  final suffixSuper = control.kind == AFUIControlKind.widget ? "Widget" : "Screen";
  return _declareID(ctx,
    name: screenName,
    suffix: control.suffix,
    after: AFCodeRegExp.startUIID(control.suffix, suffixSuper),
  );
}