getterSetter function

List<Method> getterSetter(
  1. String name,
  2. String type, {
  3. bool isAbstract = true,
})

Implementation

List<Method> getterSetter(String name, String type, {bool isAbstract = true}) {
  return [
    getter(name, type, isAbstract: isAbstract),
    setter(name, type, isAbstract: isAbstract),
  ];
}