requestFirebaseDeploy method

void requestFirebaseDeploy(
  1. FirebaseDeployPostActionType type
)

Deploy the entire package after the process is complete.

処理終了後にまとめてデプロイします。

Implementation

void requestFirebaseDeploy(FirebaseDeployPostActionType type) {
  final action = postActions.firstWhereOrNull(
    (item) => item is _FirebaseDeployPostAction,
  );
  if (action != null) {
    postActions.remove(action);
    postActions.add(
      _FirebaseDeployPostAction(
        [...(action as _FirebaseDeployPostAction).types, type].distinct(),
      ),
    );
  } else {
    postActions.add(_FirebaseDeployPostAction([type]));
  }
}