Skip to content

Instantly share code, notes, and snippets.

@orenagiv
orenagiv / effective-dart-copilot-instructions.md
Last active November 15, 2025 10:18
Github Copilot Custom Instructions for Flutter / Dart based on Effective Dart

Github Copilot Custom Instructions for Effective Dart

The following can be included as part of the [.github/copilot-instructions.md])https://docs.github.com/en/copilot/how-tos/custom-instructions) file.

Coding Standards

Follow Effective Dart guidelines for consistent Documentation & Coding.

Glossary

  • A library member is a top-level field, getter, setter, or function. Basically, anything at the top level that isn't a type.
  • A class member is a constructor, field, getter, setter, function, or operator declared inside a class. Class members can be instance or static, abstract or concrete.
  • A member is either a library member or a class member.

Example FreedomPay XML Provider Response

<POSResponse>
  <RequestGuid>d1225c62-3017-41a5-8888-d6d231fd0558</RequestGuid>
  <TransactionId>00000000000000000597</TransactionId>
  <RequestId>01Z6L0FAOK97U6D4OGDNH2KH4HIUHMOZ</RequestId>
  <ApprovedAmount>10.00</ApprovedAmount>
  <ApprovalCode>178046</ApprovalCode>
  <MaskedCardNumber>541333XXXXXX0119</MaskedCardNumber>
  <CardType>credit</CardType>