checkEnabled method

  1. @override
bool checkEnabled(
  1. ExecContext context
)
override

Decide whether to apply this action based on the contents of context.

Return true if applicable.

contextの内容を元にこのアクションを適用するかどうかを決定する。

適用する場合trueを返す。

Implementation

@override
bool checkEnabled(ExecContext context) {
  final cloudflare = context.yaml.getAsMap("cloudflare");
  final storage = cloudflare.getAsMap("storage");
  return storage.get("enable", false);
}