methodString property

String methodString

Implementation

String get methodString {
  switch (method) {
    case Method.get:
      return '\x1B[33mGET\x1B[0m';
    case Method.post:
      return '\x1B[31mPOST\x1B[0m';
    case Method.put:
      return '\x1B[32mPUT\x1B[0m';
    case Method.delete:
      return '\x1B[34mDELETE\x1B[0m';
    case Method.patch:
      return '\x1B[35mPATCH\x1B[0m';
    case Method.options:
      return '\x1B[36mOPTIONS\x1B[0m';
    case Method.all:
      return '\x1B[37mALL\x1B[0m';
    case Method.head:
      return '\x1B[38mHEAD\x1B[0m';
  }
}